From e232b5d1a77e5917dd3dc97583fb627e47b1fe42 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Mon, 24 May 2021 01:15:00 +0200 Subject: [PATCH] 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. --- cmake/compiler/gcc/settings.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index ce84dcc1a..14eca0310 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -6,6 +6,7 @@ target_compile_options(zm-warning-interface -Wformat-security -Wno-cast-function-type $<$,11>:-Wno-clobbered> + $<$,5.1>:-Wno-missing-field-initializers> -Wno-unused-parameter -Woverloaded-virtual -Wvla)