Fixed logging macro warnings
@@ -69,8 +69,11 @@ typedef struct _AudinOSSDevice
} AudinOSSDevice;
#define OSS_LOG_ERR(_text, _error) \
+ do \
+ { \
if (_error != 0) \
- WLog_ERR(TAG, "%s: %i - %s\n", _text, _error, strerror(_error));
+ WLog_ERR(TAG, "%s: %i - %s\n", _text, _error, strerror(_error)); \
+ } while (0)
static UINT32 audin_oss_get_format(const AUDIO_FORMAT* format)
{
