Skip to content

Commit 83c3e23

Browse files
committed
Temporarily silence Wstrict-prototypes for appstream
1 parent 6fcd407 commit 83c3e23

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/builder-manifest.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,25 @@
3030
#include <sys/statfs.h>
3131
#include <glib/gi18n.h>
3232

33+
/* Remove for newer appstream */
34+
#if defined(__clang__)
35+
#pragma clang diagnostic push
36+
#pragma clang diagnostic ignored "-Wstrict-prototypes"
37+
#elif defined(__GNUC__)
38+
#pragma GCC diagnostic push
39+
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
40+
#endif
41+
3342
#define I_KNOW_THE_APPSTREAM_COMPOSE_API_IS_SUBJECT_TO_CHANGE
43+
#include <appstream.h>
3444
#include <appstream-compose.h>
3545

46+
#if defined(__clang__)
47+
#pragma clang diagnostic pop
48+
#elif defined(__GNUC__)
49+
#pragma GCC diagnostic pop
50+
#endif
51+
3652
#include "builder-manifest.h"
3753
#include "builder-utils.h"
3854
#include "builder-flatpak-utils.h"

0 commit comments

Comments
 (0)