diff options
author | Andreas Schneider <asn@samba.org> | 2014-06-03 15:52:43 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-07-09 17:44:19 +0200 |
commit | 647161c0f7b0c3b86ec2dcca68cb0116755a3eab (patch) | |
tree | 06dccae07b15394ffe0b4f8381f96e7371fb2d0f /cmake | |
parent | 248c7c2087cb73642866b557d69fe35a82147c0c (diff) | |
download | socket_wrapper-647161c0f7b0c3b86ec2dcca68cb0116755a3eab.tar.gz socket_wrapper-647161c0f7b0c3b86ec2dcca68cb0116755a3eab.tar.xz socket_wrapper-647161c0f7b0c3b86ec2dcca68cb0116755a3eab.zip |
cmake: Add more build warnings and errors.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/DefineCompilerFlags.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake index e6fab88..218f4fe 100644 --- a/cmake/Modules/DefineCompilerFlags.cmake +++ b/cmake/Modules/DefineCompilerFlags.cmake @@ -14,10 +14,11 @@ if (UNIX AND NOT WIN32) 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") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -Wcast-align -Wcast-qual") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=pointer-arith -Werror=declaration-after-statement") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=implicit-function-declaration") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=implicit-function-declaration -Werror=write-strings") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast") # with -fPIC check_c_compiler_flag("-fPIC" WITH_FPIC) |