summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2016-11-12 12:13:13 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-11-12 12:14:13 +0100
commit7ef5267f3f658f96bba2beaa08f1efc35cf4526a (patch)
treea739bcf8a10eeb52aaad4048b3983e6f5546f680
parent70ecc58201ab7c20f268cd563618a9fa1f69e0d4 (diff)
downloadcmocka-7ef5267f3f658f96bba2beaa08f1efc35cf4526a.tar.gz
cmocka-7ef5267f3f658f96bba2beaa08f1efc35cf4526a.tar.bz2
cmocka-7ef5267f3f658f96bba2beaa08f1efc35cf4526a.zip
cmake: Add -Wstrict-prototypes during build
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-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 14d473f..cef5dc1 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -13,7 +13,7 @@ if (UNIX AND NOT WIN32)
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 -Wundef")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -Wundef -Wstrict-prototypes")
# with -fPIC
check_c_compiler_flag("-fPIC" WITH_FPIC)