vcap/dshow: fix gcc warn

suggested braces around empty body
This commit is contained in:
Martin Pulec
2026-01-09 10:53:00 +01:00
parent 0de9f4c19a
commit e9d01fd7ce

View File

@@ -222,11 +222,12 @@ static bool cleanup(struct vidcap_dshow_state *s) {
}
#define HANDLE_ERR_ACTION(res, action, msg, ...) \
if (res != S_OK) { \
do {\
if (res == S_OK) break;\
MSG(ERROR, msg ": %s\n", \
__VA_ARGS__ __VA_OPT__(, ) hresult_to_str(res)); \
action; \
} else
} while(0)
static bool common_init(struct vidcap_dshow_state *s) {
#define HANDLE_ERR(msg, ...) \