summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-08-25 13:41:52 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-08-25 19:11:43 +0200
commitc1ebdbae76191282add6d8c80125f54ae2b0a618 (patch)
tree59e347fe7a893c476ccf4f979281cf68e44503bb
parentef27758be6cde208c37cbe98f5ec103e3632a8db (diff)
Enable -Woverloaded-virtual
-rw-r--r--CMakeLists.txt2
-rw-r--r--build/depends.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9b1ad402d6..ec2eae19d9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -947,7 +947,7 @@ if(MSVC)
target_compile_options(mixxx-lib PUBLIC /W3)
endif()
else()
- target_compile_options(mixxx-lib PUBLIC -Wall -Wextra)
+ target_compile_options(mixxx-lib PUBLIC -Wall -Wextra -Woverloaded-virtual)
if(WARNINGS_PEDANTIC)
target_compile_options(mixxx-lib PUBLIC -pedantic)
endif()
diff --git a/build/depends.py b/build/depends.py
index 979ca00664..4c177431e0 100644
--- a/build/depends.py
+++ b/build/depends.py
@@ -1460,6 +1460,7 @@ class MixxxCore(Feature):
build.env.Append(CCFLAGS='-pipe')
build.env.Append(CCFLAGS='-Wall')
build.env.Append(CCFLAGS='-Wextra')
+ build.env.Append(CCFLAGS='-Woverloaded-virtual')
if build.compiler_is_gcc and build.gcc_major_version >= 9:
# Avoid many warnings from GCC 9 about implicitly defined copy assignment