mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-15 16:36:52 +01:00
Correction to eliminate compiler warning message
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -568,12 +568,12 @@ void MQTTGWPacket::setMsgId(int msgId)
|
|||||||
{
|
{
|
||||||
int type = getType();
|
int type = getType();
|
||||||
unsigned char* ptr = 0;
|
unsigned char* ptr = 0;
|
||||||
int len = 0;
|
|
||||||
|
|
||||||
switch ( type )
|
switch ( type )
|
||||||
{
|
{
|
||||||
case PUBLISH:
|
case PUBLISH:
|
||||||
Publish pub;
|
Publish pub;
|
||||||
|
pub.topiclen = 0;
|
||||||
pub.msgId = 0;
|
pub.msgId = 0;
|
||||||
getPUBLISH(&pub);
|
getPUBLISH(&pub);
|
||||||
pub.msgId = msgId;
|
pub.msgId = msgId;
|
||||||
|
|||||||
Reference in New Issue
Block a user