[llvm-bugs] [Bug 46763] New: [llvm-ml] Unused function causing warnings with gcc 10.1.1

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 17 06:11:22 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46763

            Bug ID: 46763
           Summary: [llvm-ml] Unused function causing warnings with gcc
                    10.1.1
           Product: new-bugs
           Version: 11.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: epastor at google.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Email from Luke Benes:

> After https://github.com/llvm/llvm-project/commit/bc8e262afe83
>     [ms] [llvm-ml] Add initial MASM STRUCT/UNION support
> 
> With gcc 10.1, I'm seeing:
> 
> [ 21%] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/MasmParser.cpp.o
> /llvm/lib/MC/MCParser/MasmParser.cpp:3836:6: warning: ‘bool {anonymous}::MasmParser::emitStructValue(const {anonymous}::StructInfo&)’ defined but not used [-Wunused-function]
>  3836 | bool MasmParser::emitStructValue(const StructInfo &Structure) {
>       |      ^~~~~~~~~~
> 
> Could you please take a look at it and backport any fix to 11.x?

This is in fact an unused function, and we should eliminate the warning.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200717/fb067d60/attachment.html>


More information about the llvm-bugs mailing list