From 080e44fc969a201fd04424fba7bdf80917b0986e Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 11 Oct 2022 11:51:09 +0200 Subject: [PATCH] Fixed extra-semi-stmt warnings --- channels/tsmf/client/oss/tsmf_oss.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/channels/tsmf/client/oss/tsmf_oss.c b/channels/tsmf/client/oss/tsmf_oss.c index 8f6fed264..374bc5c89 100644 --- a/channels/tsmf/client/oss/tsmf_oss.c +++ b/channels/tsmf/client/oss/tsmf_oss.c @@ -58,9 +58,12 @@ typedef struct UINT32 data_size_last; } TSMFOssAudioDevice; -#define OSS_LOG_ERR(_text, _error) \ - if (_error != 0) \ - WLog_ERR(TAG, "%s: %i - %s", _text, _error, strerror(_error)); +#define OSS_LOG_ERR(_text, _error) \ + do \ + { \ + if (_error != 0) \ + WLog_ERR(TAG, "%s: %i - %s", _text, _error, strerror(_error)); \ + } while (0) static BOOL tsmf_oss_open(ITSMFAudioDevice* audio, const char* device) {