mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
st/oxr: Suppress a warning.
It looks more serious than it actually is, this is normal usage.
This commit is contained in:
parent
9348130fe7
commit
124c9ecf3f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue