a/util: Silence warnings if using percetto in C++

This commit is contained in:
Ryan Pavlik 2022-04-12 14:38:31 -05:00
parent 5e002e468e
commit 2b5f07c8e4

View file

@ -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