1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

Fixed compiler warnings instead of silencing them

This commit is contained in:
kimocoder 2022-12-20 00:07:35 +01:00
parent 16453b91b4
commit de4b83f923
4 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ EXTRA_CFLAGS += -O1
#EXTRA_CFLAGS += -Werror
#EXTRA_CFLAGS += -pedantic
#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
EXTRA_CFLAGS += -Wno-cast-function-type
#EXTRA_CFLAGS += -Wno-cast-function-type
EXTRA_CFLAGS += -Wno-unused-variable
EXTRA_CFLAGS += -Wno-implicit-fallthrough
#EXTRA_CFLAGS += -Wno-unused-value

View File

@ -3377,7 +3377,7 @@ void rtw_mesh_init_mesh_info(_adapter *adapter)
_rtw_init_queue(&minfo->mpath_tx_queue);
tasklet_init(&minfo->mpath_tx_tasklet
, (void(*)(unsigned long))mpath_tx_tasklet_hdl
, (void(*))mpath_tx_tasklet_hdl
, (unsigned long)adapter);
rtw_mrc_init(adapter);

View File

@ -26,7 +26,7 @@ int usb_init_recv_priv(_adapter *padapter, u16 ini_in_buf_sz)
#ifdef PLATFORM_LINUX
tasklet_init(&precvpriv->recv_tasklet,
(void(*)(unsigned long))usb_recv_tasklet,
(void(*))usb_recv_tasklet,
(unsigned long)padapter);
#endif /* PLATFORM_LINUX */

View File

@ -25,7 +25,7 @@ s32 rtl8812au_init_xmit_priv(_adapter *padapter)
#ifdef PLATFORM_LINUX
tasklet_init(&pxmitpriv->xmit_tasklet,
(void(*)(unsigned long))rtl8812au_xmit_tasklet,
(void(*))rtl8812au_xmit_tasklet,
(unsigned long)padapter);
#endif
#ifdef CONFIG_TX_EARLY_MODE