From 2b5f07c8e4cced10cea3833bfdae2b76038ae3d2 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 12 Apr 2022 14:38:31 -0500 Subject: [PATCH] a/util: Silence warnings if using percetto in C++ --- src/xrt/auxiliary/util/u_trace_marker.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xrt/auxiliary/util/u_trace_marker.h b/src/xrt/auxiliary/util/u_trace_marker.h index 4559956dc..8cc009ed4 100644 --- a/src/xrt/auxiliary/util/u_trace_marker.h +++ b/src/xrt/auxiliary/util/u_trace_marker.h @@ -16,6 +16,11 @@ #include +#if defined(__GNUC__) && defined(__cplusplus) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wc99-designator" +#endif + #ifdef XRT_FEATURE_TRACING #include #endif @@ -176,3 +181,7 @@ PERCETTO_TRACK_DECLARE(pa_wait); #ifdef __cplusplus } #endif + +#if defined(__GNUC__) && defined(__cplusplus) +#pragma GCC diagnostic pop +#endif