aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-10 21:46:36 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-10 21:46:36 +0200
commit9f02a817ff23b3b100d9d750efa3589cee61b95e (patch)
tree076cdedfca9561fbe5ad44eaed77142d31c445fc /cmake/Modules
parent6345afabf8f5fc5da839981059f9ee15fc65aab4 (diff)
downloadlibssh-9f02a817ff23b3b100d9d750efa3589cee61b95e.tar.gz
libssh-9f02a817ff23b3b100d9d750efa3589cee61b95e.tar.xz
libssh-9f02a817ff23b3b100d9d750efa3589cee61b95e.zip
build: Added -pedantic-errors.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/DefineCompilerFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake
index 89ab244..176c340 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -9,7 +9,7 @@ if (UNIX AND NOT WIN32)
#
if (${CMAKE_C_COMPILER_ID} MATCHES GNU)
# add -Wconversion ?
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute")