Skip to content

"_FORTIFY_SOURCE redefined" build warnings #2557

@fwalch

Description

@fwalch

When building with manually specified _FORTIFY_SOURCE, a lot of warnings are produced during the header generation:

<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition

Is there something we can do about this?

To reproduce:

rm build
make CFLAGS="-D_FORTIFY_SOURCE=2" CMAKE_BUILD_TYPE=RelWithDebInfo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions