The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

xrt: Fix missing function declaration without a prototype warnings

Found by clang-15.

src/xrt/auxiliary/math/m_permutation.c:133:15: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
m_do_the_thing()
^
void

+29 -29
+1 -1
src/xrt/auxiliary/math/m_permutation.c
··· 130 130 } 131 131 132 132 void 133 - m_do_the_thing() 133 + m_do_the_thing(void) 134 134 { 135 135 struct m_permutator mp = {0}; 136 136 uint32_t elements[7];
+1 -1
src/xrt/auxiliary/math/m_permutation.h
··· 40 40 41 41 42 42 void 43 - m_do_the_thing(); 43 + m_do_the_thing(void); 44 44 45 45 46 46 #ifdef __cplusplus
+1 -1
src/xrt/auxiliary/tracking/t_imu.h
··· 26 26 * @ingroup aux_tracking 27 27 */ 28 28 struct imu_fusion * 29 - imu_fusion_create(); 29 + imu_fusion_create(void); 30 30 31 31 32 32 /*!
+6 -6
src/xrt/auxiliary/util/u_debug.h
··· 48 48 debug_get_log_option(const char *name, enum u_logging_level _default); 49 49 50 50 #define DEBUG_GET_ONCE_OPTION(suffix, name, _default) \ 51 - static const char *debug_get_option_##suffix() \ 51 + static const char *debug_get_option_##suffix(void) \ 52 52 { \ 53 53 static bool gotten = false; \ 54 54 static const char *stored; \ ··· 60 60 } 61 61 62 62 #define DEBUG_GET_ONCE_TRISTATE_OPTION(suffix, name) \ 63 - static enum debug_tristate_option debug_get_tristate_option_##suffix() \ 63 + static enum debug_tristate_option debug_get_tristate_option_##suffix(void) \ 64 64 { \ 65 65 static bool gotten = false; \ 66 66 static enum debug_tristate_option stored; \ ··· 72 72 } 73 73 74 74 #define DEBUG_GET_ONCE_BOOL_OPTION(suffix, name, _default) \ 75 - static bool debug_get_bool_option_##suffix() \ 75 + static bool debug_get_bool_option_##suffix(void) \ 76 76 { \ 77 77 static bool gotten = false; \ 78 78 static bool stored; \ ··· 84 84 } 85 85 86 86 #define DEBUG_GET_ONCE_NUM_OPTION(suffix, name, _default) \ 87 - static long debug_get_num_option_##suffix() \ 87 + static long debug_get_num_option_##suffix(void) \ 88 88 { \ 89 89 static long gotten = false; \ 90 90 static long stored; \ ··· 96 96 } 97 97 98 98 #define DEBUG_GET_ONCE_FLOAT_OPTION(suffix, name, _default) \ 99 - static float debug_get_float_option_##suffix() \ 99 + static float debug_get_float_option_##suffix(void) \ 100 100 { \ 101 101 static long gotten = false; \ 102 102 static float stored; \ ··· 108 108 } 109 109 110 110 #define DEBUG_GET_ONCE_LOG_OPTION(suffix, name, _default) \ 111 - static enum u_logging_level debug_get_log_option_##suffix() \ 111 + static enum u_logging_level debug_get_log_option_##suffix(void) \ 112 112 { \ 113 113 static long gotten = false; \ 114 114 static enum u_logging_level stored; \
+1 -1
src/xrt/auxiliary/util/u_deque.h
··· 21 21 { \ 22 22 void *ptr; \ 23 23 }; \ 24 - struct u_deque_##TYPE u_deque_##TYPE##_create(); \ 24 + struct u_deque_##TYPE u_deque_##TYPE##_create(void); \ 25 25 void u_deque_##TYPE##_push_back(struct u_deque_##TYPE ud, TYPE e); \ 26 26 bool u_deque_##TYPE##_pop_front(struct u_deque_##TYPE ud, TYPE *e); \ 27 27 TYPE u_deque_##TYPE##_at(struct u_deque_##TYPE ud, size_t i); \
+2 -2
src/xrt/auxiliary/util/u_metrics.c
··· 79 79 */ 80 80 81 81 void 82 - u_metrics_init() 82 + u_metrics_init(void) 83 83 { 84 84 const char *str = debug_get_option_metrics_file(); 85 85 if (str == NULL) { ··· 103 103 } 104 104 105 105 void 106 - u_metrics_close() 106 + u_metrics_close(void) 107 107 { 108 108 if (!g_metrics_initialized) { 109 109 return;
+1 -1
src/xrt/auxiliary/util/u_misc.c
··· 11 11 12 12 13 13 int 14 - u_silence_pedantic_warning() 14 + u_silence_pedantic_warning(void) 15 15 { 16 16 return 42; 17 17 }
+1 -1
src/xrt/auxiliary/util/u_process.c
··· 49 49 }; 50 50 51 51 struct u_process * 52 - u_process_create_if_not_running() 52 + u_process_create_if_not_running(void) 53 53 { 54 54 #ifdef XRT_HAVE_LIBBSD 55 55
+1 -1
src/xrt/auxiliary/util/u_process.h
··· 27 27 * @ingroup aux_util 28 28 */ 29 29 struct u_process * 30 - u_process_create_if_not_running(); 30 + u_process_create_if_not_running(void); 31 31 32 32 /*! 33 33 * Releases the unique handle of the operating system user.
+1 -1
src/xrt/compositor/client/comp_gl_xlib_client.c
··· 118 118 } 119 119 } 120 120 121 - typedef void (*void_ptr_func)(); 121 + typedef void (*void_ptr_func)(void); 122 122 123 123 #ifdef __cplusplus 124 124 extern "C"
+1 -1
src/xrt/compositor/main/comp_compositor.c
··· 97 97 } 98 98 99 99 static double 100 - ts_ms() 100 + ts_ms(void) 101 101 { 102 102 int64_t monotonic = os_monotonic_get_ns(); 103 103 return ns_to_ms(monotonic);
+1 -1
src/xrt/drivers/arduino/arduino_interface.h
··· 30 30 * @ingroup drv_arduino 31 31 */ 32 32 struct xrt_auto_prober * 33 - arduino_create_auto_prober(); 33 + arduino_create_auto_prober(void); 34 34 35 35 /*! 36 36 * Create a arduino device from a ble notify.
+1 -1
src/xrt/drivers/arduino/arduino_prober.c
··· 99 99 */ 100 100 101 101 struct xrt_auto_prober * 102 - arduino_create_auto_prober() 102 + arduino_create_auto_prober(void) 103 103 { 104 104 struct arduino_prober *ap = U_TYPED_CALLOC(struct arduino_prober); 105 105 ap->base.name = "Arduino";
+1 -1
src/xrt/drivers/daydream/daydream_interface.h
··· 26 26 * @ingroup drv_daydream 27 27 */ 28 28 struct xrt_auto_prober * 29 - daydream_create_auto_prober(); 29 + daydream_create_auto_prober(void); 30 30 31 31 32 32 /*!
+1 -1
src/xrt/drivers/daydream/daydream_prober.c
··· 101 101 */ 102 102 103 103 struct xrt_auto_prober * 104 - daydream_create_auto_prober() 104 + daydream_create_auto_prober(void) 105 105 { 106 106 struct daydream_prober *pdaydream = U_TYPED_CALLOC(struct daydream_prober); 107 107 pdaydream->base.name = "DayDream";
+1 -1
src/xrt/drivers/euroc/euroc_device.c
··· 72 72 } 73 73 74 74 struct xrt_auto_prober * 75 - euroc_create_auto_prober() 75 + euroc_create_auto_prober(void) 76 76 { 77 77 // `ep` var name used for euroc_player, let's use `epr` instead 78 78 struct euroc_prober *epr = U_TYPED_CALLOC(struct euroc_prober);
+1 -1
src/xrt/drivers/qwerty/qwerty_prober.c
··· 73 73 } 74 74 75 75 struct xrt_auto_prober * 76 - qwerty_create_auto_prober() 76 + qwerty_create_auto_prober(void) 77 77 { 78 78 struct qwerty_prober *qp = U_TYPED_CALLOC(struct qwerty_prober); 79 79 qp->base.name = "Qwerty";
+1 -1
src/xrt/drivers/realsense/rs_interface.h
··· 59 59 * @return An xrt_device that you can call get_tracked_pose on with XRT_INPUT_GENERIC_TRACKER_POSE 60 60 */ 61 61 struct xrt_device * 62 - rs_create_tracked_device_internal_slam(); 62 + rs_create_tracked_device_internal_slam(void); 63 63 64 64 /*! 65 65 * @dir drivers/realsense
+1 -1
src/xrt/drivers/rift_s/rift_s_tracker.c
··· 94 94 } 95 95 96 96 XRT_MAYBE_UNUSED struct t_imu_calibration 97 - rift_s_create_slam_imu_calib() 97 + rift_s_create_slam_imu_calib(void) 98 98 { 99 99 /* FIXME: Validate these hard coded standard deviations against 100 100 * some actual at-rest IMU measurements */
+1 -1
src/xrt/drivers/sample/sample_prober.c
··· 60 60 } 61 61 62 62 struct xrt_auto_prober * 63 - sample_create_auto_prober() 63 + sample_create_auto_prober(void) 64 64 { 65 65 struct sample_auto_prober *sap = U_TYPED_CALLOC(struct sample_auto_prober); 66 66 sap->base.name = "Sample";
+1 -1
src/xrt/drivers/simulated/simulated_prober.c
··· 73 73 } 74 74 75 75 struct xrt_auto_prober * 76 - simulated_create_auto_prober() 76 + simulated_create_auto_prober(void) 77 77 { 78 78 struct simulated_prober *dp = U_TYPED_CALLOC(struct simulated_prober); 79 79 dp->base.name = "Simulated";
+1 -1
src/xrt/include/xrt/xrt_prober.h
··· 722 722 * 723 723 * @ingroup xrt_iface 724 724 */ 725 - typedef struct xrt_auto_prober *(*xrt_auto_prober_create_func_t)(); 725 + typedef struct xrt_auto_prober *(*xrt_auto_prober_create_func_t)(void); 726 726 727 727 /*! 728 728 * @interface xrt_auto_prober
+1 -1
src/xrt/targets/sdl_test/sdl_internal.h
··· 386 386 * @ingroup sdl_test 387 387 */ 388 388 struct sdl_program * 389 - sdl_program_plus_create(); 389 + sdl_program_plus_create(void); 390 390 391 391 /*! 392 392 * Render a frame, called by the compositor when layers have been committed.