Skip to content

Commit

Permalink
meson.build: suppress -Wmissing-field-initializers
Browse files Browse the repository at this point in the history
There's nothing wrong with initializing only some fields.
  • Loading branch information
MaxKellermann committed Feb 13, 2025
1 parent 80ff0a0 commit 268f737
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ test_cxxflags = test_common_flags + [
'-Wvolatile',
'-Wvirtual-inheritance',

'-Wno-missing-field-initializers',

# a vtable without a dtor is just fine
'-Wno-non-virtual-dtor',

Expand Down
2 changes: 0 additions & 2 deletions src/lib/pipewire/ThreadLoop.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#pragma GCC diagnostic push
/* oh no, libspa likes to cast away "const"! */
#pragma GCC diagnostic ignored "-Wcast-qual"
/* suppress more annoying warnings */
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

#include <pipewire/thread-loop.h>
Expand Down
2 changes: 0 additions & 2 deletions src/output/plugins/PipeWireOutputPlugin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#pragma GCC diagnostic push
/* oh no, libspa likes to cast away "const"! */
#pragma GCC diagnostic ignored "-Wcast-qual"
/* suppress more annoying warnings */
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

#include <pipewire/pipewire.h>
Expand Down

0 comments on commit 268f737

Please sign in to comment.