From 5375d366cba5ff7d961857d61826f7691f810fd1 Mon Sep 17 00:00:00 2001 From: Rylie Pavlik Date: Thu, 15 Aug 2024 11:41:46 -0500 Subject: [PATCH] a/android: Fix warnings Part-of: --- doc/changes/misc_fixes/mr.2307.md | 1 + .../auxiliary/android/android_ahardwarebuffer_allocator.c | 2 +- .../auxiliary/android/android_ahardwarebuffer_allocator.h | 2 +- src/xrt/auxiliary/android/android_globals.h | 8 ++++---- 4 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 doc/changes/misc_fixes/mr.2307.md diff --git a/doc/changes/misc_fixes/mr.2307.md b/doc/changes/misc_fixes/mr.2307.md new file mode 100644 index 000000000..112eaa8e6 --- /dev/null +++ b/doc/changes/misc_fixes/mr.2307.md @@ -0,0 +1 @@ +Fix build warnings. diff --git a/src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.c b/src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.c index 640750b24..891d26b22 100644 --- a/src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.c +++ b/src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.c @@ -172,7 +172,7 @@ ahardwarebuffer_destroy(struct xrt_image_native_allocator *xina) } struct xrt_image_native_allocator * -android_ahardwarebuffer_allocator_create() +android_ahardwarebuffer_allocator_create(void) { struct xrt_image_native_allocator *xina = U_TYPED_CALLOC(struct xrt_image_native_allocator); xina->images_allocate = ahardwarebuffer_images_allocate; diff --git a/src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.h b/src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.h index 456af5ade..892347983 100644 --- a/src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.h +++ b/src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.h @@ -20,7 +20,7 @@ extern "C" { #ifdef XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER struct xrt_image_native_allocator * -android_ahardwarebuffer_allocator_create(); +android_ahardwarebuffer_allocator_create(void); xrt_result_t ahardwarebuffer_image_allocate(const struct xrt_swapchain_create_info *xsci, xrt_graphics_buffer_handle_t *out_image); diff --git a/src/xrt/auxiliary/android/android_globals.h b/src/xrt/auxiliary/android/android_globals.h index 38b6cf777..2c0e684d3 100644 --- a/src/xrt/auxiliary/android/android_globals.h +++ b/src/xrt/auxiliary/android/android_globals.h @@ -45,7 +45,7 @@ android_globals_is_instance_of_activity(struct _JavaVM *vm, void *obj); * Retrieve the Java VM pointer previously stored, if any. */ struct _JavaVM * -android_globals_get_vm(); +android_globals_get_vm(void); /*! * Retrieve the android.app.Activity jobject previously stored, if any. @@ -54,7 +54,7 @@ android_globals_get_vm(); * differs between C (a void *) and C++ (a pointer to an empty class) */ void * -android_globals_get_activity(); +android_globals_get_activity(void); /*! * Retrieve the android.content.Context jobject previously stored, if any. @@ -66,14 +66,14 @@ android_globals_get_activity(); * differs between C (a void *) and C++ (a pointer to an empty class) */ void * -android_globals_get_context(); +android_globals_get_context(void); void android_globals_store_window(struct _ANativeWindow *window); struct _ANativeWindow * -android_globals_get_window(); +android_globals_get_window(void); #ifdef __cplusplus }