diff options
author | HÃ¥vard Pettersen <havardpe@gmail.com> | 2017-04-24 11:40:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 11:40:28 +0200 |
commit | 32ae190acc9ac5081049e1c7008d1602c68cf821 (patch) | |
tree | 623ffedf401e2aec587910d1585dc909261766df | |
parent | 6bec213608e394bf3913decefa6fc0aa983ac757 (diff) | |
parent | 10c877558023a1a50243b3426947851120334723 (diff) |
Merge pull request #2237 from yahoo/balder/acivate-enfoce-override
Enable the override warning.
-rw-r--r-- | build_settings.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_settings.cmake b/build_settings.cmake index fb41490f4dd..534089bb891 100644 --- a/build_settings.cmake +++ b/build_settings.cmake @@ -17,7 +17,7 @@ set(RUN_BENCHMARKS FALSE CACHE BOOL "If TRUE, benchmarks are run together with t set(AUTORUN_UNIT_TESTS FALSE CACHE BOOL "If TRUE, tests will be run immediately after linking the test executable") # Warnings -set(WARN_OPTS "-Winline -Wuninitialized -Werror -Wall -W -Wchar-subscripts -Wcomment -Wformat -Wparentheses -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings") +set(WARN_OPTS "-Wsuggest-override -Winline -Wuninitialized -Werror -Wall -W -Wchar-subscripts -Wcomment -Wformat -Wparentheses -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings") # C and C++ compiler flags set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3 ${WARN_OPTS} -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -DBOOST_DISABLE_ASSERTS -march=westmere -mtune=intel ${EXTRA_C_FLAGS}") |