fix unused warnings

libzt/src/bindings/java/JavaSockets.cxx:40:10: warning: unused variable 'rs' [-Wunused-variable]
libzt/src/Events.cpp:185:14: warning: unused variable 'rs' [-Wunused-variable]
libzt/src/Events.cpp:189:18: warning: unused variable 'arg' [-Wunused-variable]
libzt/src/NodeService.cpp:1064:17: warning: variable 'err' set but not used [-Wunused-but-set-variable]
This commit is contained in:
Brenton Bostick
2023-07-19 15:19:40 -04:00
parent 279fc187d6
commit 6ce18af3e6
3 changed files with 7 additions and 9 deletions

View File

@@ -182,11 +182,10 @@ void Events::sendToUser(zts_event_msg_t* msg)
if (javaCbMethodId) {
JNIEnv* env;
#if defined(__ANDROID__)
jint rs = jvm->AttachCurrentThread(&env, NULL);
jvm->AttachCurrentThread(&env, NULL);
#else
jint rs = jvm->AttachCurrentThread((void**)&env, NULL);
jvm->AttachCurrentThread((void**)&env, NULL);
#endif
uint64_t arg = 0;
uint64_t id = 0;
if (ZTS_NODE_EVENT(msg->event_code)) {
id = msg->node ? msg->node->node_id : 0;