Revert changes to cppcheck and unused arguments

pull/631/head
David Garske 2025-11-18 11:53:14 -08:00 committed by Daniele Lacamera
parent 8cb3d33339
commit 4e1c9f0e1f
1 changed files with 1 additions and 2 deletions

View File

@ -105,7 +105,7 @@ CFLAGS+= \
# Setup default optimizations (for GCC)
ifeq ($(USE_GCC_HEADLESS),1)
CFLAGS+=-Wall -Wextra -Wno-main -ffreestanding -Wno-unused -nostartfiles
CFLAGS+=-ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-unused-variable
CFLAGS+=-ffunction-sections -fdata-sections -fomit-frame-pointer
LDFLAGS+=-Wl,-gc-sections -Wl,-Map=wolfboot.map -ffreestanding -nostartfiles
# Not setting LDFLAGS directly since it is passed to the test-app
LSCRIPT_FLAGS+=-T $(LSCRIPT)
@ -531,7 +531,6 @@ cppcheck:
cppcheck -f --enable=warning --enable=portability \
--suppress="ctunullpointer" --suppress="nullPointer" \
--suppress="objectIndex" --suppress="comparePointers" \
--suppress="subtractPointers" --suppress="intToPointerCast" \
--check-level=exhaustive \
--error-exitcode=89 --std=c89 src/*.c hal/*.c hal/spi/*.c hal/uart/*.c