changeset 9081 | 39eb61ccbc82 |
parent 9080 | 2e4e71ec140f |
child 9082 | 22232029f074 |
--- a/CMakeLists.txt Sun Aug 17 13:11:55 2014 -0700 +++ b/CMakeLists.txt Sun Aug 17 13:15:09 2014 -0700 @@ -331,11 +331,15 @@ check_c_compiler_flag(-Wall HAVE_GCC_WALL) if(HAVE_GCC_WALL) + list(APPEND EXTRA_CFLAGS "-Wall") if(HAIKU) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar") endif() endif() - #check_c_compiler_flag(-Wshadow HAVE_GCC_WSHADOW) + check_c_compiler_flag(-Wshadow HAVE_GCC_WSHADOW) + if(HAVE_GCC_WSHADOW) + list(APPEND EXTRA_CFLAGS "-Wshadow") + endif() endif() if(ASSEMBLY)