mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
a/android: Fix warnings
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2307>
This commit is contained in:
parent
da5d1c05b1
commit
5375d366cb
1
doc/changes/misc_fixes/mr.2307.md
Normal file
1
doc/changes/misc_fixes/mr.2307.md
Normal file
|
@ -0,0 +1 @@
|
|||
Fix build warnings.
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue