]> source.dussan.org Git - tigervnc.git/commitdiff
Turn on more warnings to catch potential bugs
authorPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:02:03 +0000 (16:02 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:02:03 +0000 (16:02 +0100)
CMakeLists.txt

index 5ecd89e4dcf558bba95ee004cd398273343c221f..7c19654ae7c2fbe1fc035bc8e2c4112a335dfb47 100644 (file)
@@ -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()