The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: Suppress a warning.

It looks more serious than it actually is, this is normal usage.

authored by

Ryan Pavlik and committed by
Jakob Bornecrantz
124c9ecf 9348130f

+10
+10
src/xrt/state_trackers/oxr/oxr_instance.c
··· 371 371 372 372 #ifdef XRT_FEATURE_RENDERDOC 373 373 374 + #ifdef __GNUC__ 375 + // Keep the warnings about normal usage of dlsym away. 376 + #pragma GCC diagnostic push 377 + #pragma GCC diagnostic ignored "-Wpedantic" 378 + #endif // __GNUC_ 379 + 374 380 #ifdef XRT_OS_LINUX 375 381 void *mod = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD); 376 382 if (mod) { ··· 395 401 assert(ret == 1); 396 402 } 397 403 #endif 404 + 405 + #ifdef __GNUC__ 406 + #pragma GCC diagnostic pop 407 + #endif // __GNUC_ 398 408 399 409 #endif 400 410