diff options
author | Vicent Marti <vicent@github.com> | 2014-04-01 17:21:04 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-04-01 17:21:04 +0200 |
commit | 82e1c1af852291b9f56b4a5458967383a0f1d5f2 (patch) | |
tree | 93a44ec88d5bf9123bb32681b21004f92cdbe30d | |
parent | a2d18a0219a1d76f0914d59bb8dc73689e9ab1b5 (diff) | |
parent | 9e1ed9f2c0e5345eebbefdb6708fad274f37bdcd (diff) | |
download | libgit2-82e1c1af852291b9f56b4a5458967383a0f1d5f2.tar.gz |
Merge pull request #2229 from linquize/Wdeclaration-after-statement
Add CFLAGS -Wdeclaration-after-statement
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cca2a120c..23c5af1fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,7 +287,7 @@ IF (MSVC) # Precompiled headers ELSE () - SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes ${CMAKE_C_FLAGS}") + SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wdeclaration-after-statement ${CMAKE_C_FLAGS}") IF (WIN32 AND NOT CYGWIN) SET(CMAKE_C_FLAGS_DEBUG "-D_DEBUG") |