summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-05-13 01:56:17 +0200
committerMichael Adam <obnox@samba.org>2014-05-21 14:42:41 +0200
commit0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0 (patch)
treea7c044571cfa930868df38dde58fbfc45d099eb5 /cmake
parentb37783b6a6503b84363877023cb37618e7504d56 (diff)
downloadsocket_wrapper-0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0.tar.gz
socket_wrapper-0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0.tar.xz
socket_wrapper-0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0.zip
cmake: Build swrap with _GNU_SOURCE.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'cmake')
-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 0ab8802..e522a6a 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -10,7 +10,7 @@ if (UNIX AND NOT WIN32)
if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
# add -Wconversion ?
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
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")