Skip to content

Commit fbfa1c5

Browse files
committed
build: Add -Wsuggest-override compiler warning for GCC and Clang
1 parent d61d811 commit fbfa1c5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmake/compilers.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ if (NOT IS_VS6_BUILD)
4949
add_compile_options(/MP)
5050
# Enforce strict __cplusplus version
5151
add_compile_options(/Zc:__cplusplus)
52+
else()
53+
add_compile_options(-Wsuggest-override)
5254
endif()
5355
else()
5456
if(RTS_BUILD_OPTION_VC6_FULL_DEBUG)

0 commit comments

Comments
 (0)