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:
f96431f1e3

Related issue discussion:
https://github.com/donahue95/rtl8192eu-linux-driver/issues/2

Thanks to donahue95 <donahue95@comcast.net>! <3

(donahue95/rtl8192eu-linux-driver@f96431f1e3)
This commit is contained in:
Magnus Bergmark 2015-11-10 23:06:48 +01:00
parent 89e79bf30a
commit 0c8b0caaaa
No known key found for this signature in database
GPG Key ID: DB2D6BB84D8E0309

View File

@ -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)