Commit 13611a98a8bbcf64792f9f33e6cc0daf88a22f00

Authored by Wiebe Cazemier
1 parent 0ffa0511

Quiet warnings about not (yet) used variables

Showing 2 changed files with 4 additions and 0 deletions
mqttpacket.cpp
@@ -400,9 +400,11 @@ void MqttPacket::handleConnect() @@ -400,9 +400,11 @@ void MqttPacket::handleConnect()
400 break; 400 break;
401 case Mqtt5Properties::RequestResponseInformation: 401 case Mqtt5Properties::RequestResponseInformation:
402 request_response_information = !!readByte(); 402 request_response_information = !!readByte();
  403 + UNUSED(request_response_information);
403 break; 404 break;
404 case Mqtt5Properties::RequestProblemInformation: 405 case Mqtt5Properties::RequestProblemInformation:
405 request_problem_information = !!readByte(); 406 request_problem_information = !!readByte();
  407 + UNUSED(request_problem_information);
406 break; 408 break;
407 case Mqtt5Properties::UserProperty: 409 case Mqtt5Properties::UserProperty:
408 readUserProperty(); 410 readUserProperty();
@@ -35,6 +35,8 @@ License along with FlashMQ. If not, see <https://www.gnu.org/licenses/>. @@ -35,6 +35,8 @@ License along with FlashMQ. If not, see <https://www.gnu.org/licenses/>.
35 #include "bindaddr.h" 35 #include "bindaddr.h"
36 #include "types.h" 36 #include "types.h"
37 37
  38 +#define UNUSED(expr) do { (void)(expr); } while (0)
  39 +
38 template<typename T> int check(int rc) 40 template<typename T> int check(int rc)
39 { 41 {
40 if (rc < 0) 42 if (rc < 0)