Skip to content

Commit

Permalink
cmake: add -Wall/-Wshadow to GCC compilation flags
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 17, 2014
1 parent 1ea8697 commit 569e595
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Expand Up @@ -331,11 +331,15 @@ if(USE_GCC OR USE_CLANG)

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)
Expand Down

0 comments on commit 569e595

Please sign in to comment.