Commit 13611a98a8bbcf64792f9f33e6cc0daf88a22f00
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 | 400 | break; |
| 401 | 401 | case Mqtt5Properties::RequestResponseInformation: |
| 402 | 402 | request_response_information = !!readByte(); |
| 403 | + UNUSED(request_response_information); | |
| 403 | 404 | break; |
| 404 | 405 | case Mqtt5Properties::RequestProblemInformation: |
| 405 | 406 | request_problem_information = !!readByte(); |
| 407 | + UNUSED(request_problem_information); | |
| 406 | 408 | break; |
| 407 | 409 | case Mqtt5Properties::UserProperty: |
| 408 | 410 | readUserProperty(); | ... | ... |
utils.h
| ... | ... | @@ -35,6 +35,8 @@ License along with FlashMQ. If not, see <https://www.gnu.org/licenses/>. |
| 35 | 35 | #include "bindaddr.h" |
| 36 | 36 | #include "types.h" |
| 37 | 37 | |
| 38 | +#define UNUSED(expr) do { (void)(expr); } while (0) | |
| 39 | + | |
| 38 | 40 | template<typename T> int check(int rc) |
| 39 | 41 | { |
| 40 | 42 | if (rc < 0) | ... | ... |