Skip to content

Commit 92496ab

Browse files
committed
unix: Enable extra compiler warnings.
To address issue adafruit#699.
1 parent 6b07a61 commit 92496ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

unix/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ INC += -I..
1818
INC += -I$(BUILD)
1919

2020
# compiler settings
21-
CWARN = -Wall -Wpointer-arith -Werror
21+
CWARN = -Wall -Werror
22+
CWARN += -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wuninitialized -Wunused-parameter
2223
CFLAGS = $(INC) $(CWARN) -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
2324

2425
# Debugging/Optimization

0 commit comments

Comments
 (0)