Skip to content

Commit 4a8556c

Browse files
committed
unix: Remove -Wdouble-promotion from main build, and 2 from coverage.
The 2 removed from coverage build are: -Wredundant-decls and -Wstrict-prototypes.
1 parent 8657342 commit 4a8556c

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

2525
# Debugging/Optimization
@@ -133,7 +133,7 @@ minimal:
133133

134134
# build an interpreter for coverage testing and do the testing
135135
coverage:
136-
$(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
136+
$(MAKE) COPT="-O0" CFLAGS_EXTRA='-fprofile-arcs -ftest-coverage -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wuninitialized -Wunused-parameter' LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' BUILD=build-coverage PROG=micropython_coverage
137137

138138
coverage_test: coverage
139139
$(eval DIRNAME=$(notdir $(CURDIR)))

0 commit comments

Comments
 (0)