Skip to content

Commit 876baf6

Browse files
committed
pipewire: disable -Wdeclaration-after-statement for pipewire headers
Fixes: #14343 (cherry picked from commit f9435ea)
1 parent c0d0b31 commit 876baf6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/audio/pipewire/SDL_pipewire.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,19 @@
2828
#include "SDL_loadso.h"
2929
#include "SDL_pipewire.h"
3030

31+
#if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))) || defined(__clang__)
32+
#pragma GCC diagnostic push
33+
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
34+
#endif
35+
3136
#include <pipewire/extensions/metadata.h>
3237
#include <spa/param/audio/format-utils.h>
3338
#include <spa/utils/json.h>
3439

40+
#if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))) || defined(__clang__)
41+
#pragma GCC diagnostic pop
42+
#endif
43+
3544
/*
3645
* The following keys are defined for compatability when building against older versions of Pipewire
3746
* prior to their introduction and can be removed if the minimum required Pipewire build version is

0 commit comments

Comments
 (0)