From 7ca879fb907b534a1adf557eebed0ea402e579e1 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Mar 2015 16:02:03 +0100 Subject: [PATCH] Turn on more warnings to catch potential bugs --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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() -- 2.39.5