st/oxr: Silence Clang warnings about typeof
Clang-8 at least throws a big warning fit about the use of typeof
:
[19/56] Building C object src/xrt/state_trackers/CMakeFiles/st_oxr.dir/oxr/oxr_api_negotiate.c.o
../src/xrt/state_trackers/oxr/oxr_api_negotiate.c:264:3: warning: extension used [-Wlanguage-extension-token]
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst,
^
../src/xrt/state_trackers/oxr/oxr_api_verify.h:55:2: note: expanded from macro 'OXR_VERIFY_INSTANCE_AND_INIT_LOG'
_OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, INSTANCE, name, new_thing)
^
../src/xrt/state_trackers/oxr/oxr_api_verify.h:25:16: note: expanded from macro '_OXR_VERIFY_AND_SET_AND_INIT'
new_thing = (typeof(new_thing))thing; \
^
Wrapping it in double-underscores quiets it without having to disable a warning explicitly, and it still builds on GCC 8.2.
Entirely possible there's a better way to quiet the warning, this was just the first thing I tried after researching it a little.