st/oxr: Suppress a warning.

It looks more serious than it actually is, this is normal usage.
This commit is contained in:
Ryan Pavlik 2023-03-02 16:56:35 -06:00 committed by Jakob Bornecrantz
parent 9348130fe7
commit 124c9ecf3f

View file

@ -371,6 +371,12 @@ oxr_instance_create(struct oxr_logger *log,
#ifdef XRT_FEATURE_RENDERDOC
#ifdef __GNUC__
// Keep the warnings about normal usage of dlsym away.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#endif // __GNUC_
#ifdef XRT_OS_LINUX
void *mod = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD);
if (mod) {
@ -396,6 +402,10 @@ oxr_instance_create(struct oxr_logger *log,
}
#endif
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC_
#endif
*out_instance = inst;