aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-01 11:03:48 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-01 11:03:48 +0200
commit16870abed7a13ae92a246f9ea85f3b58b08f0ede (patch)
tree378683983b3ecd2a3f62efebdcef522533a2ea52 /cmake
parent65850a1bad2aefd02b80ac275a5e879200c77ca2 (diff)
downloadlibssh-16870abed7a13ae92a246f9ea85f3b58b08f0ede.tar.gz
libssh-16870abed7a13ae92a246f9ea85f3b58b08f0ede.tar.xz
libssh-16870abed7a13ae92a246f9ea85f3b58b08f0ede.zip
Add more warnings to gcc.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/DefineCompilerFlags.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake
index 8ef642e..dafc799 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -4,7 +4,8 @@ include(CheckCCompilerFlag)
if (UNIX AND NOT WIN32)
if (CMAKE_COMPILER_IS_GNUCC)
- add_definitions(-std=gnu99 -pedantic -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement -Wunused)
+ # add -Wconversion ?
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute")
# with -fPIC
check_c_compiler_flag("-fPIC" WITH_FPIC)