From 9e8e1cbe56cfdf1659ed08b072db0d2f3ade59e3 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:44:17 +0200 Subject: [PATCH] Update Makefile --- Makefile | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index e5eeaf0..e27c2c7 100755 --- a/Makefile +++ b/Makefile @@ -1,15 +1,22 @@ VERSION_HEADER = include/rtw_version.h EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -fno-pie -EXTRA_CFLAGS += -O1 -#EXTRA_CFLAGS += -O3 -EXTRA_CFLAGS += -Wall -Wno-error -EXTRA_CFLAGS += -Wextra -EXTRA_CFLAGS += -Wno-address +EXTRA_CFLAGS += -O3 +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-implicit-fallthrough +EXTRA_CFLAGS += -Wno-cast-function-type +#EXTRA_CFLAGS += -Wno-error=cast-function-type +#EXTRA_CFLAGS += -Wno-parentheses-equality +EXTRA_CFLAGS += -Wno-error=incompatible-pointer-types EXTRA_CFLAGS += -Wno-stringop-overread - -#EXTRA_CFLAGS += -Werror -#EXTRA_CFLAGS += -pedantic -#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes +#EXTRA_CFLAGS += -Wno-pointer-bool-conversion +EXTRA_CFLAGS += -Wno-unknown-pragmas +#EXTRA_CFLAGS += -Wno-unused +EXTRA_CFLAGS += -Wno-address +EXTRA_CFLAGS += -Wno-vla -g #EXTRA_CFLAGS += -Wno-tautological-compare #EXTRA_CFLAGS += -Wno-incompatible-pointer-types @@ -23,19 +30,12 @@ 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-misleading-indentation EXTRA_CFLAGS += -Wno-uninitialized - -####EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE -EXTRA_CFLAGS += -DCONFIG_USB_TX_AGGREGATION -CFLAGS += -Wno-declaration-after-statement # 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 -# Consti10 openhd begin - relax some more warnings such that one can build with debug enabled -EXTRA_CFLAGS += -Wno-implicit-fallthrough -# Consti10 openhd end GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ) ifeq ($(GCC_VER_49),1)