diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2015-03-04 10:18:08 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-03-04 18:41:01 +0000 |
commit | 08a75e07cbf66d6f22ab0ddc64244fbcfd061278 (patch) | |
tree | 592d3d4a0c75a60e96a5d3fcc728913eabad26c7 | |
parent | 50bd76ac5b132f7033ac8b89d74675b5ce5e177f (diff) |
Enable -Wsign-compare for cmake builds.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=17289
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
-rw-r--r-- | cmake/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 69221296..607d9b1a 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -190,6 +190,8 @@ if(DBUS_WITH_GLIB) endif() SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wsign-compare") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-compare") ######################################################################### # Windows CE (>= 5.0.0) |