This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Description
Compilation of saf_wrapper.c fails for arm64-v8a architecture on macOS Android NDK r22.
jni/../app/src/main/cpp/saf_wrapper.c:41:14: error: cast to smaller integer type 'int' from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
int fd = (int)opaque;
^~~~~~~~~~~
jni/../app/src/main/cpp/saf_wrapper.c:46:14: error: cast to smaller integer type 'int' from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
int fd = (int)opaque;
^~~~~~~~~~~
jni/../app/src/main/cpp/saf_wrapper.c:51:14: error: cast to smaller integer type 'int' from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
int fd = (int)opaque;
^~~~~~~~~~~
jni/../app/src/main/cpp/saf_wrapper.c:93:18: error: cast to smaller integer type 'int' from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
int fd = (int)ctx->opaque;
^~~~~~~~~~~~~~~~
4 errors generated.