Skip to content

[LLVM] GCC15 prints thousands of warnings when compiling. #141464

Open
@carlo-bramini

Description

@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:

add_flag_if_supported("-Wno-unnecessary-virtual-specifier" CXX_SUPPORTS_UNNECESSARY_VIRTUAL_FLAG)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmakeBuild system in general and CMake in particular

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions