Skip to content

Commit b5d8958

Browse files
committed
Revert changes to cppcheck and unused arguments
1 parent bdf337b commit b5d8958

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ CFLAGS+= \
105105
# Setup default optimizations (for GCC)
106106
ifeq ($(USE_GCC_HEADLESS),1)
107107
CFLAGS+=-Wall -Wextra -Wno-main -ffreestanding -Wno-unused -nostartfiles
108-
CFLAGS+=-ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-unused-variable
108+
CFLAGS+=-ffunction-sections -fdata-sections -fomit-frame-pointer
109109
LDFLAGS+=-Wl,-gc-sections -Wl,-Map=wolfboot.map -ffreestanding -nostartfiles
110110
# Not setting LDFLAGS directly since it is passed to the test-app
111111
LSCRIPT_FLAGS+=-T $(LSCRIPT)
@@ -531,7 +531,6 @@ cppcheck:
531531
cppcheck -f --enable=warning --enable=portability \
532532
--suppress="ctunullpointer" --suppress="nullPointer" \
533533
--suppress="objectIndex" --suppress="comparePointers" \
534-
--suppress="subtractPointers" --suppress="intToPointerCast" \
535534
--check-level=exhaustive \
536535
--error-exitcode=89 --std=c89 src/*.c hal/*.c hal/spi/*.c hal/uart/*.c
537536

0 commit comments

Comments
 (0)