From b79883bf5856fe0dfe019088007d4e7fcef0c7fc Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 12 Jul 2020 05:34:24 +0000 Subject: [PATCH] Some minor optimizations --- Makefile | 6 +++--- hal/phydm/halhwimg.h | 41 ----------------------------------------- include/basic_types.h | 39 --------------------------------------- 3 files changed, 3 insertions(+), 83 deletions(-) diff --git a/Makefile b/Makefile index d1a0864..68ce666 100755 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -fno-pie EXTRA_CFLAGS += -O3 -mtune=native EXTRA_CFLAGS += -Wno-unused-variable -EXTRA_CFLAGS += -Wno-unused-value +#EXTRA_CFLAGS += -Wno-unused-value EXTRA_CFLAGS += -Wno-unused-label -EXTRA_CFLAGS += -Wno-unused-parameter +#EXTRA_CFLAGS += -Wno-unused-parameter EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wimplicit-fallthrough=0 #EXTRA_CFLAGS += -Wno-parentheses-equality #EXTRA_CFLAGS += -Wno-pointer-bool-conversion EXTRA_CFLAGS += -Wno-unknown-pragmas -EXTRA_CFLAGS += -Wno-unused +#EXTRA_CFLAGS += -Wno-unused EXTRA_CFLAGS += -Wno-vla -g #GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ) diff --git a/hal/phydm/halhwimg.h b/hal/phydm/halhwimg.h index 6d658b3..2ae2aaa 100644 --- a/hal/phydm/halhwimg.h +++ b/hal/phydm/halhwimg.h @@ -91,47 +91,6 @@ #define RTL8188ES_HWIMG_SUPPORT 0 #endif -#else /* PLATFORM_WINDOWS & MacOSX */ - - /* @For 92C */ - #define RTL8192CE_HWIMG_SUPPORT 1 - #define RTL8192CE_TEST_HWIMG_SUPPORT 1 - #define RTL8192CU_HWIMG_SUPPORT 1 - #define RTL8192CU_TEST_HWIMG_SUPPORT 1 - - /* @For 92D */ - #define RTL8192DE_HWIMG_SUPPORT 1 - #define RTL8192DE_TEST_HWIMG_SUPPORT 1 - #define RTL8192DU_HWIMG_SUPPORT 1 - #define RTL8192DU_TEST_HWIMG_SUPPORT 1 - - #if defined(UNDER_CE) - /* @For 8723 */ - #define RTL8723E_HWIMG_SUPPORT 0 - #define RTL8723U_HWIMG_SUPPORT 0 - #define RTL8723S_HWIMG_SUPPORT 1 - - /* @For 88E */ - #define RTL8188EE_HWIMG_SUPPORT 0 - #define RTL8188EU_HWIMG_SUPPORT 0 - #define RTL8188ES_HWIMG_SUPPORT 0 - - #else - - /* @For 8723 */ - #define RTL8723E_HWIMG_SUPPORT 1 - /* @#define RTL_8723E_TEST_HWIMG_SUPPORT 1 */ - #define RTL8723U_HWIMG_SUPPORT 1 - /* @#define RTL_8723U_TEST_HWIMG_SUPPORT 1 */ - #define RTL8723S_HWIMG_SUPPORT 1 - /* @#define RTL_8723S_TEST_HWIMG_SUPPORT 1 */ - - /* @For 88E */ - #define RTL8188EE_HWIMG_SUPPORT 1 - #define RTL8188EU_HWIMG_SUPPORT 1 - #define RTL8188ES_HWIMG_SUPPORT 1 - #endif - #endif #endif /* @__INC_HW_IMG_H */ diff --git a/include/basic_types.h b/include/basic_types.h index 4ec0e61..a324aba 100644 --- a/include/basic_types.h +++ b/include/basic_types.h @@ -31,45 +31,6 @@ #define _FALSE FALSE #endif -#ifdef PLATFORM_WINDOWS - - typedef signed char s8; - typedef unsigned char u8; - - typedef signed short s16; - typedef unsigned short u16; - - typedef signed long s32; - typedef unsigned long u32; - - typedef unsigned int uint; - typedef signed int sint; - - - typedef signed long long s64; - typedef unsigned long long u64; - - #ifdef NDIS50_MINIPORT - - #define NDIS_MAJOR_VERSION 5 - #define NDIS_MINOR_VERSION 0 - - #endif - - #ifdef NDIS51_MINIPORT - - #define NDIS_MAJOR_VERSION 5 - #define NDIS_MINOR_VERSION 1 - - #endif - - typedef NDIS_PROC proc_t; - - typedef LONG atomic_t; - -#endif - - #ifdef PLATFORM_LINUX #include #ifndef RHEL_RELEASE_CODE