aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:02:03 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:02:03 +0100
commit7ca879fb907b534a1adf557eebed0ea402e579e1 (patch)
tree2d022c479b81aadd186acbdf67920433d37474c4 /CMakeLists.txt
parentb33ff746b4b724e3c6594d106642bfaf6412ba6c (diff)
downloadtigervnc-7ca879fb907b534a1adf557eebed0ea402e579e1.tar.gz
tigervnc-7ca879fb907b534a1adf557eebed0ea402e579e1.zip
Turn on more warnings to catch potential bugs
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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()