Skip to content

Commit

Permalink
Moved suggest-override to the GCC only section
Browse files Browse the repository at this point in the history
I did not realise Clang 6 was the earliest supported Clang version.
  • Loading branch information
dk949 committed Jan 17, 2024
1 parent 19e413d commit 5befd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CompilerWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ function(
-Wdouble-promotion # warn if float is implicit promoted to double
-Wformat=2 # warn on security issues around functions that format output (ie printf)
-Wimplicit-fallthrough # warn on statements that fallthrough without an explicit annotation
-Wsuggest-override # warn if an overridden member function is not marked 'override' or 'final'
)
endif()

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

Expand Down

0 comments on commit 5befd22

Please sign in to comment.