aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-25 13:58:30 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-25 13:58:30 +0200
commita1ad0deb3216f9e40d5940f5c12f94d6dbc9e546 (patch)
treebba6d659524099ee0fcde06b3879ca2cf119dab6
parent7c575a241868b546a09de5cd8953bb686aed69e8 (diff)
downloadlibssh-a1ad0deb3216f9e40d5940f5c12f94d6dbc9e546.tar.gz
libssh-a1ad0deb3216f9e40d5940f5c12f94d6dbc9e546.tar.xz
libssh-a1ad0deb3216f9e40d5940f5c12f94d6dbc9e546.zip
Set gcc to c99 standard and enable pedantic.
-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 97ece25d..c6531f6b 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -4,7 +4,7 @@ include(CheckCCompilerFlag)
if (UNIX AND NOT WIN32)
if (CMAKE_COMPILER_IS_GNUCC)
- add_definitions(-Wall -Wextra -Wmissing-prototypes -Wdeclaration-after-statement -Wunused)
+ add_definitions(-std=gnu99 -pedantic -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement -Wunused)
# with -fPIC
check_c_compiler_flag("-fPIC" WITH_FPIC)