diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-14 21:03:47 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-14 21:03:47 +0300 |
commit | 2a976811a96cc371e71f8e9889164aad617327b4 (patch) | |
tree | efff0f4fc45eb954b5115f65f12421fbd9fe53d4 /CMakeLists.txt | |
parent | 2ecb371950a12e77a8ffce36b2a8d812d0937fb9 (diff) |
Tweak the CMake warnings a bit. For example, function declarations with no parameters being declared without void in the parameter list were throwing too many warnings to be useful. Same for implicit casting of function return values from one numeric type to another.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 85e4b862bf7..299c31162b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,7 +197,7 @@ IF(UNIX) SET(PLATFORM_LINKFLAGS "-pthread") # Better warnings - SET(C_WARNINGS "-Wall -Wno-char-subscripts -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wredundant-decls -Wdeclaration-after-statement -Wno-unused-parameter") + SET(C_WARNINGS "-Wall -Wextra -Wno-char-subscripts -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Waggregate-return -Wnested-externs -Wredundant-decls -Wdeclaration-after-statement -Wno-unused-parameter") INCLUDE_DIRECTORIES(/usr/include /usr/local/include) ENDIF(UNIX) |