The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/trace_marker: Silence deprecation from percetto defines

+10
+10
src/xrt/auxiliary/util/u_trace_marker.c
··· 23 23 24 24 DEBUG_GET_ONCE_BOOL_OPTION(tracing, "XRT_TRACING", false) 25 25 26 + #if defined(__GNUC__) 27 + #pragma GCC diagnostic push 28 + // ATOMIC_VAR_INIT was deprecated in C14 which is used by PERCETTO_* defines. 29 + #pragma GCC diagnostic ignored "-Wdeprecated-pragma" 30 + #endif 31 + 26 32 PERCETTO_CATEGORY_DEFINE(U_TRACE_CATEGORIES) 27 33 28 34 PERCETTO_TRACK_DEFINE(pc_cpu, PERCETTO_TRACK_EVENTS); ··· 36 42 PERCETTO_TRACK_DEFINE(pa_draw, PERCETTO_TRACK_EVENTS); 37 43 PERCETTO_TRACK_DEFINE(pa_wait, PERCETTO_TRACK_EVENTS); 38 44 45 + #if defined(__GNUC__) 46 + #pragma GCC diagnostic pop 47 + #endif 39 48 40 49 static enum u_trace_which static_which; 41 50 static bool static_inited = false; 51 + 42 52 43 53 void 44 54 u_trace_marker_setup(enum u_trace_which which)