mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user