Skip to content

Commit b3175c2

Browse files
robert-ancellardera
authored andcommitted
Avoid unused variable compile message if debugging is disabled
1 parent c1a9a27 commit b3175c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/audioplayers/plugin.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ static int on_local_method_call(char *channel, struct platch_obj *object, Flutte
156156
return platch_respond_illegal_arg_std(responsehandle, "Expected `arg['message']` to be a string.");
157157
}
158158

159+
// Avoid unused variable compile message if debugging is disabled.
160+
(void) message;
161+
159162
LOG_DEBUG("%s\n", message);
160163
//TODO: https://github.com/bluefireteam/audioplayers/blob/main/packages/audioplayers_linux/linux/audio_player.cc#L247
161164
} else if (strcmp(method, "emitError") == 0) {

0 commit comments

Comments
 (0)