Skip to content

Commit

Permalink
Disables unused variable warnings when verbose logs are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Hagedorn authored and felixLam committed May 23, 2016
1 parent d8a670e commit c49bbd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MQTTClient/MQTTClient/MQTTSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ - (void)checkTxFlows {
}

- (void)decoder:(MQTTDecoder*)sender handleEvent:(MQTTDecoderEvent)eventCode error:(NSError *)error {
NSArray *events = @[
__unused NSArray *events = @[
@"MQTTDecoderEventProtocolError",
@"MQTTDecoderEventConnectionClosed",
@"MQTTDecoderEventConnectionError"
Expand Down
2 changes: 1 addition & 1 deletion MQTTClient/MQTTClient/MQTTSessionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ - (void)disconnect
- (void)handleEvent:(MQTTSession *)session event:(MQTTSessionEvent)eventCode error:(NSError *)error
{
#ifdef DEBUG
const NSDictionary *events = @{
__unused const NSDictionary *events = @{
@(MQTTSessionEventConnected): @"connected",
@(MQTTSessionEventConnectionRefused): @"connection refused",
@(MQTTSessionEventConnectionClosed): @"connection closed",
Expand Down

0 comments on commit c49bbd4

Please sign in to comment.