diff --git a/Makefile b/Makefile index 1645390..10693ee 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,6 @@ EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) EXTRA_CFLAGS += -O1 #EXTRA_CFLAGS += -O3 -#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-unused-variable EXTRA_CFLAGS += -Wno-unused-value @@ -13,7 +8,7 @@ EXTRA_CFLAGS += -Wno-unused-label EXTRA_CFLAGS += -Wno-unused-parameter EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wno-unused -#EXTRA_CFLAGS += -Wno-uninitialized +EXTRA_CFLAGS += -Wno-vla -g EXTRA_CFLAGS += -Wno-implicit-fallthrough GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ) diff --git a/core/efuse/rtw_efuse.c b/core/efuse/rtw_efuse.c index e266e2d..0843376 100644 --- a/core/efuse/rtw_efuse.c +++ b/core/efuse/rtw_efuse.c @@ -778,13 +778,14 @@ void rtw_efuse_analyze(PADAPTER padapter, u8 Type, u8 Fake) j = 0; for (i = 0; i < mapLen; i++) { - if (i % 16 == 0) + if (i % 16 == 0) { RTW_PRINT_SEL(RTW_DBGDUMP, "0x%03x: ", i); _RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s" , pEfuseHal->fakeEfuseInitMap[i] , ((i + 1) % 16 == 0) ? "\n" : (((i + 1) % 8 == 0) ? " " : " ") ); } + } _RTW_PRINT_SEL(RTW_DBGDUMP, "\n"); if (eFuseWord) rtw_mfree((u8 *)eFuseWord, EFUSE_MAX_SECTION_NUM * (EFUSE_MAX_WORD_UNIT * 2)); diff --git a/core/rtw_mlme.c b/core/rtw_mlme.c index 9695ec4..2bfa50f 100644 --- a/core/rtw_mlme.c +++ b/core/rtw_mlme.c @@ -3119,10 +3119,11 @@ void rtw_drv_scan_by_self(_adapter *padapter, u8 reason) #ifdef CONFIG_LAYER2_ROAMING if (rtw_chk_roam_flags(padapter, RTW_ROAM_ACTIVE) && pmlmepriv->need_to_roam == _TRUE) RTW_INFO(FUNC_ADPT_FMT" need to roam, don't care BusyTraffic\n", FUNC_ADPT_ARG(padapter)); - else + else { #endif RTW_INFO(FUNC_ADPT_FMT" exit BusyTraffic\n", FUNC_ADPT_ARG(padapter)); goto exit; + } } else if (ssc_chk != SS_ALLOW) goto exit; diff --git a/core/rtw_rf.c b/core/rtw_rf.c index 39ac68b..55556d0 100644 --- a/core/rtw_rf.c +++ b/core/rtw_rf.c @@ -1288,9 +1288,10 @@ void dump_txpwr_lmt(void *sel, _adapter *adapter) RTW_PRINT_SEL(sel, "txpwr_lmt_2g_cck_ofdm_state:0x%02x\n", rfctl->txpwr_lmt_2g_cck_ofdm_state); #ifdef CONFIG_IEEE80211_BAND_5GHZ - if (IS_HARDWARE_TYPE_JAGUAR_AND_JAGUAR2(adapter)) + if (IS_HARDWARE_TYPE_JAGUAR_AND_JAGUAR2(adapter)) { RTW_PRINT_SEL(sel, "txpwr_lmt_5g_cck_ofdm_state:0x%02x\n", rfctl->txpwr_lmt_5g_cck_ofdm_state); RTW_PRINT_SEL(sel, "txpwr_lmt_5g_20_40_ref:0x%02x\n", rfctl->txpwr_lmt_5g_20_40_ref); + } #endif RTW_PRINT_SEL(sel, "\n");