From 91f381e533998258fa3dc2a09bd1c1a1f4bf6fa5 Mon Sep 17 00:00:00 2001 From: Martin Vajnar Date: Sun, 21 Jul 2013 14:45:50 +0200 Subject: [PATCH 1/1] JORTE: remove unused variable and use TEST_STAGE for time --- orte/libjorte/JORTESubscriptionCreate.c | 2 -- orte/libjorte/setRecvInfo.c | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/orte/libjorte/JORTESubscriptionCreate.c b/orte/libjorte/JORTESubscriptionCreate.c index 998840d..c7475aa 100644 --- a/orte/libjorte/JORTESubscriptionCreate.c +++ b/orte/libjorte/JORTESubscriptionCreate.c @@ -51,7 +51,6 @@ recvCallBack(const ORTERecvInfo *info,void *vinstance, void *recvCallBackParam) JNIEnv *env = 0; jclass cls = 0; // local reference! jclass cls_msg = 0; - jobject obj = 0; jobject rinfo = 0; jobject obj_msg; jmethodID mid = 0; @@ -92,7 +91,6 @@ recvCallBack(const ORTERecvInfo *info,void *vinstance, void *recvCallBackParam) break; } // set local vars - obj = callback_cont->obj; rinfo = callback_cont->rinfo; obj_msg = callback_cont->msg; diff --git a/orte/libjorte/setRecvInfo.c b/orte/libjorte/setRecvInfo.c index c73455d..2816e33 100644 --- a/orte/libjorte/setRecvInfo.c +++ b/orte/libjorte/setRecvInfo.c @@ -16,8 +16,10 @@ int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj) jmethodID mid; // int flag_ok = 0; - int32_t sec; - uint32_t us; + #ifdef TEST_STAGE + int32_t sec; + uint32_t us; + #endif do { -- 2.39.2