From 9db202c0e0a6b0e5804993523e54cf827ed0a12e Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 4 Mar 2015 10:18:08 +0100 Subject: [PATCH] Enable -Wsign-compare for cmake builds. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=17289 --- cmake/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 6922129..bad1215 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_CX_FLAGS} -Wsign-compare") ######################################################################### # Windows CE (>= 5.0.0) -- 1.8.4.5