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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to