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