a/android: Fix warnings

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2307>
This commit is contained in:
Rylie Pavlik 2024-08-15 11:41:46 -05:00
parent da5d1c05b1
commit 5375d366cb
4 changed files with 7 additions and 6 deletions

View file

@ -0,0 +1 @@
Fix build warnings.

View file

@ -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;

View file

@ -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);

View file

@ -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
}