aboutsummaryrefslogtreecommitdiffstats
path: root/build_settings.cmake
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-04-23 17:38:41 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-04-23 17:38:41 +0200
commit10c877558023a1a50243b3426947851120334723 (patch)
treef7c98fda4ad244cc25e360a834521f45a8186026 /build_settings.cmake
parent2734f8f555c51970cc45ec25ea132752e64527d9 (diff)
Enable the override warning.
Diffstat (limited to 'build_settings.cmake')
-rw-r--r--build_settings.cmake2
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}")