Skip to content

Commit b05163d

Browse files
Fix build error from spa module
Co-authored-by: Johan Hultberg <[email protected]>
1 parent 383b7b2 commit b05163d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

audio-capture/app/audiocapture.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@
4141
#include <stdlib.h>
4242
#include <string.h>
4343

44+
#pragma GCC diagnostic push
45+
#pragma GCC diagnostic ignored "-Wtype-limits"
4446
#include <pipewire/pipewire.h>
4547
#include <spa/param/audio/format-utils.h>
48+
#pragma GCC diagnostic pop
4649

4750
PW_LOG_TOPIC_STATIC(topic, "audiocapture");
4851
#define PW_LOG_TOPIC_DEFAULT topic

audio-playback/app/audioplayback.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@
4141
#include <stdlib.h>
4242
#include <string.h>
4343

44+
#pragma GCC diagnostic push
45+
#pragma GCC diagnostic ignored "-Wtype-limits"
4446
#include <pipewire/pipewire.h>
4547
#include <spa/param/audio/format-utils.h>
48+
#pragma GCC diagnostic pop
4649

4750
#define FREQUENCY 440
4851
#define VOLUME 0.5f

0 commit comments

Comments
 (0)