ninja: Entering directory `D:\JetBrainsProjects\AndroidProject\AYKJTrainService\usbcameralib\.cxx\Debug\p1d1g3y1\arm64-v8a' [1/5] Building CXX object CMakeFiles/usbcamera-lib.dir/src/main/cpp/charencode.cpp.o ../../../../src/main/cpp/charencode.cpp:204:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 1 warning generated. [2/5] Building C object CMakeFiles/usbcamera-lib.dir/src/main/cpp/ImageProc.c.o ../../../../src/main/cpp/ImageProc.c:141:29: warning: passing 'char [100]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (SonixCam_GetFwVersion(buf, 100, true)) { ^~~ ../../../../src/main/cpp/SonixCamera/SonixCamera.h:85:43: note: passing argument to parameter 'pData' here bool SonixCam_GetFwVersion(unsigned char pData[], long len, BOOL bNormalExport); ^ ../../../../src/main/cpp/ImageProc.c:194:30: warning: passing '__u8 [32]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(name) != strlen(cap.card)) { ^~~~~~~~ D:/Program Files/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\bits/fortify/string.h:243:33: note: passing argument to parameter 's' here size_t strlen(const char* const s __pass_object_size0) __overloadable { ^ ../../../../src/main/cpp/ImageProc.c:198:57: warning: passing '__u8 [32]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (int x = 0, y = 0; x < strlen(name) && y < strlen(cap.card); ++x, ++y) { ^~~~~~~~ D:/Program Files/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\bits/fortify/string.h:243:33: note: passing argument to parameter 's' here size_t strlen(const char* const s __pass_object_size0) __overloadable { ^ ../../../../src/main/cpp/ImageProc.c:232:42: warning: passing '__u8 [32]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(CameraInfo[fmtdesc.index].name, fmtdesc.description); ^~~~~~~~~~~~~~~~~~~ D:/Program Files/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\bits/fortify/string.h:109:62: note: passing argument to parameter 'src' here char* strcpy(char* const dst __pass_object_size, const char* src) ^ ../../../../src/main/cpp/ImageProc.c:654:42: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] LOGE("initdevice initmmap calloc = %d", req.count*sizeof(*buffers)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %lu ../../../../src/main/cpp/ImageProc.h:29:67: note: expanded from macro 'LOGE' #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__) ^~~~~~~~~~~ ../../../../src/main/cpp/ImageProc.c:681:57: warning: format specifies type 'long' but the argument has type '__u32' (aka 'unsigned int') [-Wformat] LOGI("buff[%d] length = %ld offset = %ld", n_buffers, buf.length, buf.m.offset); ~~~ ^~~~~~~~~~ %u ../../../../src/main/cpp/ImageProc.h:28:66: note: expanded from macro 'LOGI' #define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) ^~~~~~~~~~~ ../../../../src/main/cpp/ImageProc.c:681:69: warning: format specifies type 'long' but the argument has type '__u32' (aka 'unsigned int') [-Wformat] LOGI("buff[%d] length = %ld offset = %ld", n_buffers, buf.length, buf.m.offset); ~~~ ^~~~~~~~~~~~ %u ../../../../src/main/cpp/ImageProc.h:28:66: note: expanded from macro 'LOGI' #define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) ^~~~~~~~~~~ ../../../../src/main/cpp/ImageProc.c:1052:22: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] except_camera_name = (*env)->GetStringUTFChars(env, name, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. [3/5] Building CXX object CMakeFiles/usbcamera-lib.dir/src/main/cpp/watermark.cpp.o [4/5] Building CXX object CMakeFiles/usbcamera-lib.dir/src/main/cpp/apptimer.cpp.o ../../../../src/main/cpp/apptimer.cpp:40:9: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] delete var.var_ptr; ^ ~~~~~~~~~~~ 1 warning generated. [5/5] Linking CXX shared library ..\..\..\..\build\intermediates\cxx\Debug\p1d1g3y1\obj\arm64-v8a\libusbcamera-lib.so