From 1ab87aace6a8353b3876364460e29775ffface74 Mon Sep 17 00:00:00 2001 From: Niklas Johansson Date: Mon, 11 Dec 2017 07:55:42 +0100 Subject: [PATCH] Remove shadow warn. (MQTTAsync_completeConnection) Removes shadow of previous defined local (m). Especially because the two are of different types: MQTTAsyncs* m Messages* m Signed-off-by: Niklas Johansson --- src/MQTTAsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MQTTAsync.c b/src/MQTTAsync.c index dc4950d2..4cf65e04 100644 --- a/src/MQTTAsync.c +++ b/src/MQTTAsync.c @@ -1689,8 +1689,8 @@ static int MQTTAsync_completeConnection(MQTTAsyncs* m, MQTTPacket* pack) while (ListNextElement(m->c->outboundMsgs, &outcurrent)) { - Messages* m = (Messages*)(outcurrent->content); - m->lastTouch = 0; + Messages* messages = (Messages*)(outcurrent->content); + messages->lastTouch = 0; } MQTTProtocol_retry((time_t)0, 1, 1); if (m->c->connected != 1)