The open source OpenXR runtime

d/wmr: Silence some warnings.

authored by

Ryan Pavlik and committed by
Rylie Pavlik
a36cad97 a8fc75cb

+32 -5
+32 -5
src/xrt/drivers/wmr/wmr_camera.h
··· 61 61 #else 62 62 63 63 /* Stubs to disable camera functions without libusb */ 64 - #define wmr_camera_open(config) NULL 65 - #define wmr_camera_free(cam) 66 - #define wmr_camera_start(cam) false 67 - #define wmr_camera_stop(cam) false 68 - #define wmr_camera_set_exposure_gain(cam, camera_id, exposure, gain) -1 64 + static inline struct wmr_camera * 65 + wmr_camera_open(struct wmr_camera_open_config *config) 66 + { 67 + (void)config; 68 + return NULL; 69 + } 70 + static inline void 71 + wmr_camera_free(struct wmr_camera *cam) 72 + { 73 + (void)cam; 74 + } 75 + static inline bool 76 + wmr_camera_start(struct wmr_camera *cam) 77 + { 78 + (void)cam; 79 + return false; 80 + } 81 + static inline bool 82 + wmr_camera_stop(struct wmr_camera *cam) 83 + { 84 + (void)cam; 85 + return false; 86 + } 87 + static inline int 88 + wmr_camera_set_exposure_gain(struct wmr_camera *cam, uint8_t camera_id, uint16_t exposure, uint8_t gain) 89 + { 90 + (void)cam; 91 + (void)camera_id; 92 + (void)exposure; 93 + (void)gain; 94 + return -1; 95 + } 69 96 70 97 #endif 71 98