diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-04-03 18:44:33 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-06-24 13:47:18 +0200 |
commit | c4106e34e2aea900db2cbfe03553dae82fc11170 (patch) | |
tree | 995f256fa98cb40bc143fda44f8681a8c2edd22e /CMakeLists.txt | |
parent | e3132b406de025ec4ecd612977425c7e7273ecf9 (diff) | |
download | tigervnc-c4106e34e2aea900db2cbfe03553dae82fc11170.tar.gz tigervnc-c4106e34e2aea900db2cbfe03553dae82fc11170.zip |
Enforce using "override"
Make sure developers don't miss marking methods correctly.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cb62c11..9f798cca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat=2 -Wvla") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wformat=2 -Wvla") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wzero-as-null-pointer-constant") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsuggest-override") # Make sure we catch these issues whilst developing IF(CMAKE_BUILD_TYPE MATCHES Debug) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") |