From ad2caeb67a72294085bb3eebda6e6b2f9d910a0a Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Fri, 13 Oct 2023 15:43:06 +0200 Subject: [PATCH] Cppcheck: properly fail when finding errors --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 06281993..c64baf92 100644 --- a/Makefile +++ b/Makefile @@ -329,7 +329,7 @@ line-count-x86: cloc --force-lang-def cloc_lang_def.txt src/boot_x86_fsp.c src/boot_x86_fsp_payload.c src/boot_x86_fsp_start.S src/image.c src/keystore.c src/libwolfboot.c src/loader.c src/string.c src/update_disk.c src/x86/ahci.c src/x86/ata.c src/x86/common.c src/x86/gpt.c src/x86/hob.c src/pci.c src/x86/tgl_fsp.c hal/x86_fsp_tgl.c hal/x86_uart.c cppcheck: - cppcheck -f --suppress="ctunullpointer" --suppress="nullPointer" --suppress="objectIndex" --suppress="comparePointers" --std=c89 src/*.c hal/*.c hal/spi/*.c hal/uart/*.c + cppcheck -f --suppress="ctunullpointer" --suppress="nullPointer" --suppress="objectIndex" --suppress="comparePointers" --error-exitcode=89 --std=c89 src/*.c hal/*.c hal/spi/*.c hal/uart/*.c %.o:%.c @echo "\t[CC-$(ARCH)] $@"