]> source.dussan.org Git - tigervnc.git/commitdiff
Enforce using "override"
authorPierre Ossman <ossman@cendio.se>
Wed, 3 Apr 2024 16:44:33 +0000 (18:44 +0200)
committerPierre Ossman <ossman@cendio.se>
Mon, 24 Jun 2024 11:47:18 +0000 (13:47 +0200)
Make sure developers don't miss marking methods correctly.

CMakeLists.txt

index 1cb62c117319dd19eacbc8d5dc4474375af75e27..9f798cca0debf920ffa1a52ae53029643c3ac45d 100644 (file)
@@ -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")