mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
use _FORTIFY_SOURCE level 3 #2703
This commit is contained in:
parent
0f64dbb24b
commit
29a5dc2295
@ -122,7 +122,7 @@ if(NOT WIN32)
|
|||||||
# MSYS2 needs -lssp and -fstack-protector for _FORTIFY_SOURCE
|
# MSYS2 needs -lssp and -fstack-protector for _FORTIFY_SOURCE
|
||||||
# macOS with ASAN can't handle _FORTIFY_SOURCE != 1
|
# macOS with ASAN can't handle _FORTIFY_SOURCE != 1
|
||||||
if(NOT ${USE_ASAN})
|
if(NOT ${USE_ASAN})
|
||||||
add_compile_definitions(_FORTIFY_SOURCE=2)
|
add_compile_definitions(_FORTIFY_SOURCE=3)
|
||||||
endif()
|
endif()
|
||||||
add_compile_options(-Wformat -Werror=format-security)
|
add_compile_options(-Wformat -Werror=format-security)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user