diff options
author | Gert Wollny <gert.wollny@collabora.com> | 2023-09-12 15:03:34 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-09-12 13:29:09 +0000 |
commit | 8ba4e4a89d6ee488a9a8528b743d95ed4f066ab6 (patch) | |
tree | bd9ee7ad327a190d8e64dbea2a616158c746399c | |
parent | 30d1cb179b1bb1022d7e01ded95af6e933c2aa8d (diff) |
mesa/util: balance pragma diagnostic push/pop in libsync.h
Fixes: 62ea381 (mesa/util: Import libsync)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1235>
-rw-r--r-- | src/mesa/util/libsync.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/util/libsync.h b/src/mesa/util/libsync.h index f85ff70..3dc52ec 100644 --- a/src/mesa/util/libsync.h +++ b/src/mesa/util/libsync.h @@ -39,6 +39,7 @@ #include <time.h> #if defined(__GNUC__) +#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif @@ -221,6 +222,8 @@ static inline int sync_accumulate(const char *name, int *fd1, int fd2) } #endif +#if defined(__GNUC__) #pragma GCC diagnostic pop +#endif #endif |