Remove some compile options
This commit is contained in:
parent
8da4c88fd3
commit
9289394261
@ -49,11 +49,8 @@ list(APPEND COMPILE_OPTIONS
|
|||||||
-Wmissing-declarations
|
-Wmissing-declarations
|
||||||
-Wstrict-overflow=2
|
-Wstrict-overflow=2
|
||||||
-Wunused-parameter
|
-Wunused-parameter
|
||||||
-Wduplicated-branches
|
|
||||||
-Wduplicated-cond
|
|
||||||
-Wformat=2
|
-Wformat=2
|
||||||
-Wdisabled-optimization
|
-Wdisabled-optimization
|
||||||
-Wunsafe-loop-optimizations
|
|
||||||
-Wno-sign-conversion
|
-Wno-sign-conversion
|
||||||
-Wno-old-style-cast
|
-Wno-old-style-cast
|
||||||
-fpermissive
|
-fpermissive
|
||||||
@ -63,7 +60,7 @@ if(APPLE)
|
|||||||
list(APPEND COMPILE_OPTIONS -Wno-unused-parameter)
|
list(APPEND COMPILE_OPTIONS -Wno-unused-parameter)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(BUILD_WERROR "Build with -Werror" ON)
|
option(BUILD_WERROR "Build with -Werror" OFF)
|
||||||
if(BUILD_WERROR)
|
if(BUILD_WERROR)
|
||||||
list(APPEND COMPILE_OPTIONS -Werror)
|
list(APPEND COMPILE_OPTIONS -Werror)
|
||||||
endif(BUILD_WERROR)
|
endif(BUILD_WERROR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user