Skip to content

Commit 1293317

Browse files
hathachclaude
andcommitted
fix remaining CFLAGS_GCC references in example Makefiles
CFLAGS_GCC is no longer consumed after IAR make removal. Change to CFLAGS in net_lwip_webserver, host_hid_to_device_cdc, and host_info_to_device_cdc so warning suppression flags are applied. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6e21370 commit 1293317

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/device/net_lwip_webserver/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include ../../../hw/bsp/family_support.mk
22

33
# suppress warning caused by lwip
4-
CFLAGS_GCC += \
4+
CFLAGS += \
55
-Wno-error=null-dereference \
66
-Wno-error=unused-parameter \
77
-Wno-error=unused-variable

examples/dual/host_hid_to_device_cdc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ INC += \
88
EXAMPLE_SOURCE += $(wildcard src/*.c)
99
SRC_C += $(addprefix $(EXAMPLE_PATH)/, $(EXAMPLE_SOURCE))
1010

11-
CFLAGS_GCC += -Wno-error=cast-align -Wno-error=null-dereference
11+
CFLAGS += -Wno-error=cast-align -Wno-error=null-dereference
1212

1313
SRC_C += \
1414
src/class/hid/hid_host.c \

examples/dual/host_info_to_device_cdc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ INC += \
88
EXAMPLE_SOURCE += $(wildcard src/*.c)
99
SRC_C += $(addprefix $(EXAMPLE_PATH)/, $(EXAMPLE_SOURCE))
1010

11-
CFLAGS_GCC += -Wno-error=cast-align -Wno-error=null-dereference
11+
CFLAGS += -Wno-error=cast-align -Wno-error=null-dereference
1212

1313
SRC_C += \
1414
src/host/hub.c \

0 commit comments

Comments
 (0)