From: Pierre Ossman Date: Tue, 3 Mar 2015 15:02:03 +0000 (+0100) Subject: Turn on more warnings to catch potential bugs X-Git-Tag: v1.4.90~33^2~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ca879fb907b534a1adf557eebed0ea402e579e1;p=tigervnc.git Turn on more warnings to catch potential bugs --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ecd89e4..7c19654a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,10 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -UNDEBUG") set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -UNDEBUG") set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -UNDEBUG") +# Tell the compiler to be stringent +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wformat=2") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wformat=2") + if(NOT DEFINED BUILD_WINVNC) set(BUILD_WINVNC 1) endif()