Skip to content

Commit 2e22c2b

Browse files
committed
unix: Move compiler warnings from production build to coverage build.
1 parent 7674da8 commit 2e22c2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unix/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ INC += -I$(BUILD)
1919

2020
# compiler settings
2121
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
22+
CWARN += -Wdouble-promotion -Wpointer-arith -Wuninitialized
2323
CFLAGS = $(INC) $(CWARN) -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
2424

2525
# Debugging/Optimization
@@ -136,7 +136,7 @@ minimal:
136136
# build an interpreter for coverage testing and do the testing
137137
coverage:
138138
@echo Make sure to run make -B
139-
$(MAKE) COPT="-O0" CFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' BUILD=build-coverage PROG=micropython_coverage
139+
$(MAKE) COPT="-O0" CFLAGS_EXTRA='-fprofile-arcs -ftest-coverage -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wuninitialized -Wunused-parameter' LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' BUILD=build-coverage PROG=micropython_coverage
140140

141141
coverage_test: coverage
142142
$(eval DIRNAME=$(notdir $(CURDIR)))

0 commit comments

Comments
 (0)