Allow freebsd to shadow to fix build (#3397)

This commit is contained in:
Mitchell Grenier 2017-06-12 21:07:33 -07:00 committed by Teddy Reed
parent dfb6d84112
commit 3c9347247b

View File

@ -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