fix release build

This commit is contained in:
Eric House 2023-04-06 20:02:30 -07:00
parent fbd45b6a03
commit 131826d34f
3 changed files with 10 additions and 3 deletions

View file

@ -55,7 +55,10 @@ passTAPToAndroid( AndTransportProcs* aprocs, JNIEnv* env, jobject jtap )
{
const char* sig = "(L" PKG_PATH("jni/XwJNI$TopicsAndPackets") ";)I";
jmethodID mid = getMethodID( env, aprocs->jxport, "transportSendMQTT", sig );
XP_S16 tmp = (*env)->CallIntMethod( env, aprocs->jxport, mid, jtap );
#ifdef DEBUG
XP_S16 tmp =
#endif
(*env)->CallIntMethod( env, aprocs->jxport, mid, jtap );
XP_LOGFF( "%s() => %d", sig, tmp );
deleteLocalRef( env, jtap );
LOG_RETURN_VOID();

View file

@ -335,6 +335,7 @@ static void logAddrComms( const CommsCtxt* comms, const CommsAddrRec* addr,
# define printQueue( comms )
# define logAddr( comms, addr, caller)
# define listRecs( comms, caller )
# define logAddrComms(comms, addr, caller)
#endif /* def DEBUG */
#if defined RELAY_HEARTBEAT || defined COMMS_HEARTBEAT

View file

@ -52,8 +52,11 @@ sendQueueHead( MQTTConStorage* storage )
for ( GSList* iter = storage->queue; !!iter; iter = iter->next ) {
QElem* elem = (QElem*)iter->data;
if ( 0 == elem->mid ) {
int err = mosquitto_publish( storage->mosq, &elem->mid, elem->topic,
elem->len, elem->buf, DEFAULT_QOS, true );
#ifdef DEBUG
int err =
#endif
mosquitto_publish( storage->mosq, &elem->mid, elem->topic,
elem->len, elem->buf, DEFAULT_QOS, true );
XP_LOGFF( "mosquitto_publish(topic=%s, len=%d) => %s; mid=%d", elem->topic,
elem->len, mosquitto_strerror(err), elem->mid );
break;