mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2024-12-22 13:33:58 +03:00
Don't redefine _FORTIFY_SOURCE macro
If the _FORTIFY_SOURCE has been already defined, we unconditionally redefine it, leaving us with warning/error thrown at compilation time.
This commit is contained in:
parent
1648363b85
commit
bd84ea26ea
@ -46,7 +46,7 @@ AC_DEFUN([VIRT_VIEWER_COMPILE_WARNINGS],[
|
|||||||
|
|
||||||
AH_VERBATIM([FORTIFY_SOURCE],
|
AH_VERBATIM([FORTIFY_SOURCE],
|
||||||
[/* Enable compile-time and run-time bounds-checking, and some warnings. */
|
[/* Enable compile-time and run-time bounds-checking, and some warnings. */
|
||||||
#if defined __OPTIMIZE__ && __OPTIMIZE__
|
#if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__
|
||||||
# define _FORTIFY_SOURCE 2
|
# define _FORTIFY_SOURCE 2
|
||||||
#endif
|
#endif
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user