Skip to content

Commit 206100f

Browse files
committed
Treat warnings as errors by adding -Werror
Add the -Werror flag to the CFLAGS to treat all warnings as errors during the build process. This ensures that warnings are blocked by CI, enforcing cleaner code and preventing builds from succeeding with any warnings
1 parent 81dd26e commit 206100f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BIN := $(OUT)/rv32emu
77
CONFIG_FILE := $(OUT)/.config
88
-include $(CONFIG_FILE)
99

10-
CFLAGS = -std=gnu99 -O2 -Wall -Wextra
10+
CFLAGS = -std=gnu99 -O2 -Wall -Wextra -Werror
1111
CFLAGS += -Wno-unused-label
1212
CFLAGS += -include src/common.h -Isrc/
1313

0 commit comments

Comments
 (0)