aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-01-05 16:56:14 +0100
committerPierre Ossman <ossman@cendio.se>2023-01-05 16:56:14 +0100
commit27262aeabf3e4d8e29d8f64dbbe48441b80ce387 (patch)
tree67c0e1be485483604ffbcd1fca97e425a9f34886 /CMakeLists.txt
parent4701b05b7829f355c7dd4a78f0e194f232872f76 (diff)
parent7a36fb8ca702fdf6548d3a791896a161c94af5b4 (diff)
downloadtigervnc-27262aeabf3e4d8e29d8f64dbbe48441b80ce387.tar.gz
tigervnc-27262aeabf3e4d8e29d8f64dbbe48441b80ce387.zip
Merge branch 'wextra' of https://github.com/CendioOssman/tigervnc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 70ccdbba..ce47949c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,12 +73,12 @@ ENDIF()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
# 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")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat=2 -Wvla")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wformat=2 -Wvla")
# Make sure we catch these issues whilst developing
IF(CMAKE_BUILD_TYPE MATCHES Debug)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Werror=vla")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Werror=vla")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
ENDIF()
# clang doesn't support format_arg, which breaks this warning
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")