Issue 141464
Summary [LLVM] GCC15 prints thousands of warnings when compiling.
Labels
Assignees
Reporter carlo-bramini
    I tried to build the latest development sources with GCC-15.1, the build process runs but I noticed that thousands of warnings like this one are printed on the console:
```
cc1plus: note: unrecognized command-line option ‘-Wno-unnecessary-virtual-specifier’ may have been intended to silence earlier diagnostics
```
Actually, the effect is just a warning message, but perhaps it would be worth to avoid it, if it's possible.
This flags seems to be added only here:
https://github.com/llvm/llvm-project/blob/926c2013231a030a52037528bac0ba124c35ac32/llvm/cmake/modules/HandleLLVMOptions.cmake#L888
by using a macro called `add_flag_if_supported()` into the code.
Unfurtunately, it seems that it doesn't detect that GCC is not understanding this option.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to