mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
build system: don't use -Woverloaded-virtual
with g++
With g++ 8 there are way too many false positives in `EbmlElement.h` which is included from nearly each and every file in MKVToolNix. This floods the compilation logs with irrelevant warnings drowning out the legitimate ones.
This commit is contained in:
parent
471fc84ed2
commit
bc12006391
3
Rakefile
3
Rakefile
@ -140,7 +140,8 @@ def setup_globals
|
||||
cflags = "#{cflags_common} #{c(:USER_CFLAGS)}"
|
||||
|
||||
cxxflags = "#{cflags_common} #{c(:STD_CXX)}"
|
||||
cxxflags += " -Wnon-virtual-dtor -Woverloaded-virtual -Wextra -Wno-missing-field-initializers #{c(:WSHADOW_COMPATIBLE_LOCAL)} #{c(:WNO_MAYBE_UNINITIALIZED)}"
|
||||
cxxflags += " -Woverloaded-virtual" if c(:COMPILER_TYPE) != "gcc" # too many false positives in EbmlElement.h on g++ 8
|
||||
cxxflags += " -Wnon-virtual-dtor -Wextra -Wno-missing-field-initializers #{c(:WSHADOW_COMPATIBLE_LOCAL)} #{c(:WNO_MAYBE_UNINITIALIZED)}"
|
||||
cxxflags += " #{c(:QT_CFLAGS)} #{c(:BOOST_CPPFLAGS)} #{c(:USER_CXXFLAGS)}"
|
||||
|
||||
ldflags = ""
|
||||
|
Loading…
Reference in New Issue
Block a user