Skip to content

Commit 8c718e4

Browse files
build: add -Wshadow -Wconversion -Wstrict-prototypes -O2
Tighten compiler warnings to catch implicit conversions, shadowed variables, and missing prototypes. Enable -O2 optimization for release builds. Amp-Thread-ID: https://ampcode.com/threads/T-019cfc7e-c61f-7459-9d48-5c06613d5c89 Co-authored-by: Amp <amp@ampcode.com>
1 parent d9cd954 commit 8c718e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ else
1212
endif
1313

1414
CLANG := clang
15-
CFLAGS_COMMON = -Wall -Wextra -pedantic
15+
CFLAGS_COMMON = -Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wstrict-prototypes -O2
1616
SRC = src/chatbot.c
1717

1818
# Default targets

0 commit comments

Comments
 (0)