Skip to content
Snippets Groups Projects
Commit 9dc7a22e authored by Janne Grunau's avatar Janne Grunau Committed by Rémi Denis-Courmont
Browse files

build: avoid annoying _FORTIFY_SOURCE warnings (fixes #17341)


fixed patch with the duplicate "#if defined ..." removed

Janne
---8<---
Some toolchains predefine _FORTIFY_SOURCE resulting in countless
_FORTIFY_SOURCE is redefined warnings. Using _FORTIFY_SOURCE without
compiler optimizations also generates warnings.
_FORTIFY_SOURCE is a reserved identifier in C99 ("All identifiers that
begin with an underscore and either an uppercase letter or another
underscore are always reserved for any use.") so the toolchain is
perfectly free to predefine it.

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent fb0734b6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment