Add missing override keyword:

* Enable the `suggest-override` warning for gcc
* Fix all functions that were flagged by that warning
This commit is contained in:
Joe Loser
2018-05-13 10:55:45 -04:00
committed by seelabs
parent 0ae157a5c3
commit 7c785d0d7c
145 changed files with 276 additions and 271 deletions

View File

@@ -589,8 +589,13 @@ macro(setup_build_boilerplate)
-DBOOST_ASIO_DISABLE_HANDLER_TYPE_REQUIREMENTS
)
# `ripple.pb.h`, generated from protobuf triggers some warnings
# Set the directory that file lives in as SYSTEM
include_directories(SYSTEM ${CMAKE_BINARY_DIR})
if (is_gcc)
add_compile_options(-Wno-unused-but-set-variable -Wno-deprecated)
append_flags(CMAKE_CXX_FLAGS -Wsuggest-override)
# use gold linker if available
execute_process(