summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2013-11-18 14:15:12 +0100
committerRadek Novacek <rnovacek@redhat.com>2013-11-18 14:43:05 +0100
commit34e418f1cc72dc79b25c6bc4c7db9866e07c95b8 (patch)
tree036f629d32260f6c5f512edb11b77a6d504428e9
parentde7e807310e00883ae39c59cc9cd14a66eaa4586 (diff)
downloadopenlmi-providers-34e418f1cc72dc79b25c6bc4c7db9866e07c95b8.tar.gz
openlmi-providers-34e418f1cc72dc79b25c6bc4c7db9866e07c95b8.tar.xz
openlmi-providers-34e418f1cc72dc79b25c6bc4c7db9866e07c95b8.zip
Enable more compilation warnings (-W -Wformat-security)
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f6ec4b..3de7156 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,7 @@ cmake_minimum_required(VERSION 2.6)
# Set flags and definitions
add_definitions(-D_XOPEN_SOURCE=500 -D_GNU_SOURCE)
-set(CMAKE_C_FLAGS "-std=c99 -fstack-protector-strong -Wall -pedantic -g -Wextra -Wno-unused-parameter -Wformat -Wparentheses -Wl,--no-undefined ${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS "-std=c99 -fstack-protector-strong -Wall -W -Wformat-security -pedantic -g -Wextra -Wno-unused-parameter -Wformat -Wparentheses -Wl,--no-undefined ${CMAKE_C_FLAGS}")
# Set LIB_SUFFIX to 64 on 64bit architectures
if(CMAKE_SIZEOF_VOID_P EQUAL 4)