mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-13 17:20:09 +00:00
st/steamvr_drv: Guard GNU pragmas
This commit is contained in:
parent
fedb4fd413
commit
3f9e5c2a30
|
@ -32,8 +32,10 @@ extern "C" {
|
|||
#include "bindings/b_generated_bindings.h"
|
||||
}
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
|
||||
#endif
|
||||
|
||||
//! When set, all controllers pretend to be Index controllers. Provides best
|
||||
//! compatibility with legacy games due to steamvr's legacy binding for Index
|
||||
|
@ -1420,4 +1422,6 @@ ovrd_hmd_driver_impl(const char *pInterfaceName, int *pReturnCode)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue