The open source OpenXR runtime

a/android: Fix warnings

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2307>

+7 -6
+1
doc/changes/misc_fixes/mr.2307.md
··· 1 + Fix build warnings.
+1 -1
src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.c
··· 172 172 } 173 173 174 174 struct xrt_image_native_allocator * 175 - android_ahardwarebuffer_allocator_create() 175 + android_ahardwarebuffer_allocator_create(void) 176 176 { 177 177 struct xrt_image_native_allocator *xina = U_TYPED_CALLOC(struct xrt_image_native_allocator); 178 178 xina->images_allocate = ahardwarebuffer_images_allocate;
+1 -1
src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.h
··· 20 20 #ifdef XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER 21 21 22 22 struct xrt_image_native_allocator * 23 - android_ahardwarebuffer_allocator_create(); 23 + android_ahardwarebuffer_allocator_create(void); 24 24 25 25 xrt_result_t 26 26 ahardwarebuffer_image_allocate(const struct xrt_swapchain_create_info *xsci, xrt_graphics_buffer_handle_t *out_image);
+4 -4
src/xrt/auxiliary/android/android_globals.h
··· 45 45 * Retrieve the Java VM pointer previously stored, if any. 46 46 */ 47 47 struct _JavaVM * 48 - android_globals_get_vm(); 48 + android_globals_get_vm(void); 49 49 50 50 /*! 51 51 * Retrieve the android.app.Activity jobject previously stored, if any. ··· 54 54 * differs between C (a void *) and C++ (a pointer to an empty class) 55 55 */ 56 56 void * 57 - android_globals_get_activity(); 57 + android_globals_get_activity(void); 58 58 59 59 /*! 60 60 * Retrieve the android.content.Context jobject previously stored, if any. ··· 66 66 * differs between C (a void *) and C++ (a pointer to an empty class) 67 67 */ 68 68 void * 69 - android_globals_get_context(); 69 + android_globals_get_context(void); 70 70 71 71 72 72 void 73 73 android_globals_store_window(struct _ANativeWindow *window); 74 74 75 75 struct _ANativeWindow * 76 - android_globals_get_window(); 76 + android_globals_get_window(void); 77 77 78 78 #ifdef __cplusplus 79 79 }