Build: Disable Wmissing-field-initializers on older GCC versions

GCC 5.1 corrected the behaviour in regard that the C++11 initialisation behaviour is respected.
This commit is contained in:
Peter Keresztes Schmidt 2021-05-24 01:15:00 +02:00
parent 9900fc1273
commit e232b5d1a7
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ target_compile_options(zm-warning-interface
-Wformat-security
-Wno-cast-function-type
$<$<VERSION_LESS:$<CXX_COMPILER_VERSION>,11>:-Wno-clobbered>
$<$<VERSION_LESS:$<CXX_COMPILER_VERSION>,5.1>:-Wno-missing-field-initializers>
-Wno-unused-parameter
-Woverloaded-virtual
-Wvla)