The open source OpenXR runtime
0
fork

Configure Feed

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

aux/util: remove ignore warning diagnostics in u_trace_marker.h

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272>

authored by

Simon Zeni and committed by
Rylie Pavlik
ee7ed5d3 5375d366

-23
-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 - 32 26 PERCETTO_CATEGORY_DEFINE(U_TRACE_CATEGORIES) 33 27 34 28 PERCETTO_TRACK_DEFINE(pc_cpu, PERCETTO_TRACK_EVENTS); ··· 41 35 PERCETTO_TRACK_DEFINE(pa_cpu, PERCETTO_TRACK_EVENTS); 42 36 PERCETTO_TRACK_DEFINE(pa_draw, PERCETTO_TRACK_EVENTS); 43 37 PERCETTO_TRACK_DEFINE(pa_wait, PERCETTO_TRACK_EVENTS); 44 - 45 - #if defined(__GNUC__) 46 - #pragma GCC diagnostic pop 47 - #endif 48 38 49 39 static enum u_trace_which static_which; 50 40 static bool static_inited = false;
-13
src/xrt/auxiliary/util/u_trace_marker.h
··· 16 16 17 17 #include <stdio.h> 18 18 19 - #if defined(__cplusplus) && (defined(__clang__) || defined(__GNUC__)) 20 - #pragma GCC diagnostic push 21 - #if defined(__GNUC__) && !defined(__clang__) 22 - #pragma GCC diagnostic ignored "-Wpedantic" 23 - #elif defined(__clang__) 24 - #pragma GCC diagnostic ignored "-Wc++20-designator" 25 - #endif 26 - #endif 27 - 28 19 #if defined(XRT_FEATURE_TRACING) && defined(XRT_HAVE_PERCETTO) 29 20 #define U_TRACE_PERCETTO 30 21 #include <percetto.h> ··· 383 374 #ifdef __cplusplus 384 375 } 385 376 #endif 386 - 387 - #if defined(__cplusplus) && (defined(__clang__) || defined(__GNUC__)) 388 - #pragma GCC diagnostic pop 389 - #endif