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

Android builds fail to compile saf_wrapper on Android NDK r22 #5

@tanersener

Description

@tanersener

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions