meson.build: suppress -Wmissing-field-initializers
There's nothing wrong with initializing only some fields.
This commit is contained in:
@@ -171,6 +171,8 @@ test_cxxflags = test_common_flags + [
|
|||||||
'-Wvolatile',
|
'-Wvolatile',
|
||||||
'-Wvirtual-inheritance',
|
'-Wvirtual-inheritance',
|
||||||
|
|
||||||
|
'-Wno-missing-field-initializers',
|
||||||
|
|
||||||
# a vtable without a dtor is just fine
|
# a vtable without a dtor is just fine
|
||||||
'-Wno-non-virtual-dtor',
|
'-Wno-non-virtual-dtor',
|
||||||
|
|
||||||
|
@@ -7,8 +7,6 @@
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
/* oh no, libspa likes to cast away "const"! */
|
/* oh no, libspa likes to cast away "const"! */
|
||||||
#pragma GCC diagnostic ignored "-Wcast-qual"
|
#pragma GCC diagnostic ignored "-Wcast-qual"
|
||||||
/* suppress more annoying warnings */
|
|
||||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <pipewire/thread-loop.h>
|
#include <pipewire/thread-loop.h>
|
||||||
|
@@ -24,8 +24,6 @@
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
/* oh no, libspa likes to cast away "const"! */
|
/* oh no, libspa likes to cast away "const"! */
|
||||||
#pragma GCC diagnostic ignored "-Wcast-qual"
|
#pragma GCC diagnostic ignored "-Wcast-qual"
|
||||||
/* suppress more annoying warnings */
|
|
||||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <pipewire/pipewire.h>
|
#include <pipewire/pipewire.h>
|
||||||
|
Reference in New Issue
Block a user