CMake: Add another K&R warning to the -Werror list
This commit is contained in:
parent
dd13ceb42d
commit
fec87062ca
@ -34,7 +34,7 @@ if(NOT MSVC)
|
|||||||
# mingw32 likes to complain about using the "wrong" format strings despite them actually working
|
# mingw32 likes to complain about using the "wrong" format strings despite them actually working
|
||||||
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-format")
|
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-format")
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} -Werror=implicit-function-declaration")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} -Werror=implicit-function-declaration -Werror=implicit-int")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS}")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS}")
|
||||||
else()
|
else()
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS /wd4003 /wd4244 /wd4146 /wd4267 /Zc:preprocessor-")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS /wd4003 /wd4244 /wd4146 /wd4267 /Zc:preprocessor-")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user