mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-06 01:25:20 +00:00
Allow freebsd to shadow to fix build (#3397)
This commit is contained in:
parent
dfb6d84112
commit
3c9347247b
@ -145,7 +145,6 @@ if(POSIX)
|
||||
-Wformat
|
||||
-Wformat-security
|
||||
-Werror=format-security
|
||||
-Werror=shadow
|
||||
-Wabi-tag
|
||||
-fpermissive
|
||||
-fstack-protector-all
|
||||
@ -155,6 +154,11 @@ if(POSIX)
|
||||
-fvisibility=hidden
|
||||
-fvisibility-inlines-hidden
|
||||
)
|
||||
if(NOT FREEBSD)
|
||||
add_compile_options(
|
||||
-Werror=shadow
|
||||
)
|
||||
endif()
|
||||
elseif(WINDOWS)
|
||||
add_compile_options(
|
||||
/EHsc
|
||||
|
Loading…
Reference in New Issue
Block a user