Skip to content

Commit 5befd22

Browse files
committed
Moved suggest-override to the GCC only section
I did not realise Clang 6 was the earliest supported Clang version.
1 parent 19e413d commit 5befd22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/CompilerWarnings.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ function(
5656
-Wdouble-promotion # warn if float is implicit promoted to double
5757
-Wformat=2 # warn on security issues around functions that format output (ie printf)
5858
-Wimplicit-fallthrough # warn on statements that fallthrough without an explicit annotation
59-
-Wsuggest-override # warn if an overridden member function is not marked 'override' or 'final'
6059
)
6160
endif()
6261

@@ -68,6 +67,7 @@ function(
6867
-Wduplicated-branches # warn if if / else branches have duplicated code
6968
-Wlogical-op # warn about logical operations being used where bitwise were probably wanted
7069
-Wuseless-cast # warn if you perform a cast to the same type
70+
-Wsuggest-override # warn if an overridden member function is not marked 'override' or 'final'
7171
)
7272
endif()
7373

0 commit comments

Comments
 (0)