From 55bab2ab30317db89bb4530c24f2f7b2a848eff2 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 17 Jun 2019 20:44:02 +0200 Subject: [PATCH] Fixed more compile warnings, for now at least --- Makefile | 13 ++++++++++++- hal/rtl8812a/usb/rtl8812au_xmit.c | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 87977bd..28f3d21 100755 --- a/Makefile +++ b/Makefile @@ -1,19 +1,30 @@ EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) EXTRA_CFLAGS += -O1 #EXTRA_CFLAGS += -O3 -#EXTRA_CFLAGS += -Wall +EXTRA_CFLAGS += -Wall #EXTRA_CFLAGS += -Wextra #EXTRA_CFLAGS += -Werror #EXTRA_CFLAGS += -pedantic #EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes +#EXTRA_CFLAGS += -Wno-tautological-compare +#EXTRA_CFLAGS += -Wno-incompatible-pointer-types +#EXTRA_CFLAGS += -Wno-switch +#EXTRA_CFLAGS += -Wno-cast-function-type EXTRA_CFLAGS += -Wno-unused-variable EXTRA_CFLAGS += -Wno-unused-value EXTRA_CFLAGS += -Wno-unused-label EXTRA_CFLAGS += -Wno-unused-parameter EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wno-unused +#EXTRA_CFLAGS += -Wno-cast-function-type +EXTRA_CFLAGS += -Wno-date-time +#EXTRA_CFLAGS += -Wno-misleading-indentation #EXTRA_CFLAGS += -Wno-uninitialized +# Relax some warnings from '-Wextra' so we won't get flooded with warnings +#EXTRA_CFLAGS += -Wno-sign-compare +#EXTRA_CFLAGS += -Wno-missing-field-initializers +#EXTRA_CFLAGS += -Wno-type-limits GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ) ifeq ($(GCC_VER_49),1) diff --git a/hal/rtl8812a/usb/rtl8812au_xmit.c b/hal/rtl8812a/usb/rtl8812au_xmit.c index 82e09bb..c62a13b 100644 --- a/hal/rtl8812a/usb/rtl8812au_xmit.c +++ b/hal/rtl8812a/usb/rtl8812au_xmit.c @@ -430,7 +430,7 @@ u32 upload_txpktbuf_8812au(_adapter *adapter, u8 *buf, u32 buflen) } rtw_write32(adapter, REG_PKTBUF_DBG_CTRL, 0xff800000+(beacon_head<<6) + qw_addr); loop_cnt = 0; - while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) == 1) { + while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) != 0) { rtw_udelay_os(10); if (loop_cnt++ == 100) return _FALSE;