From 0c8b0caaaa2acce8a9c5cb724ddf94eb9ace416a Mon Sep 17 00:00:00 2001 From: Magnus Bergmark Date: Tue, 10 Nov 2015 23:06:48 +0100 Subject: [PATCH] Fix "void value not ignored as it ought to be" errors The macros in rtw_debug.h expands an `if` without a body, so this error is emitted several dozen times when compiling. Work-around found here: https://github.com/donahue95/rtl8192eu-linux-driver/commit/f96431f1e33d0dec4213959d3a24bb53adcf771e Related issue discussion: https://github.com/donahue95/rtl8192eu-linux-driver/issues/2 Thanks to donahue95 ! <3 (donahue95/rtl8192eu-linux-driver@f96431f1e33d0dec4213959d3a24bb53adcf771e) --- include/rtw_debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rtw_debug.h b/include/rtw_debug.h index 09490bc..4936b0e 100644 --- a/include/rtw_debug.h +++ b/include/rtw_debug.h @@ -227,7 +227,7 @@ extern void rtl871x_cedbg(const char *fmt, ...); if (sel == RTW_DBGDUMP)\ _DBG_871X_LEVEL(_drv_always_, fmt, ##arg); \ else {\ - if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \ + _seqdump(sel, fmt, ##arg) /*rtw_warn_on(1)*/; \ } \ }while(0) @@ -237,7 +237,7 @@ extern void rtl871x_cedbg(const char *fmt, ...); if (sel == RTW_DBGDUMP)\ DBG_871X_LEVEL(_drv_always_, fmt, ##arg); \ else {\ - if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \ + _seqdump(sel, fmt, ##arg) /*rtw_warn_on(1)*/; \ } \ }while(0)