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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user