mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
a/util: Silence warnings if using percetto in C++
This commit is contained in:
parent
5e002e468e
commit
2b5f07c8e4
|
@ -16,6 +16,11 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(__GNUC__) && defined(__cplusplus)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wc99-designator"
|
||||
#endif
|
||||
|
||||
#ifdef XRT_FEATURE_TRACING
|
||||
#include <percetto.h>
|
||||
#endif
|
||||
|
@ -176,3 +181,7 @@ PERCETTO_TRACK_DECLARE(pa_wait);
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(__cplusplus)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue