Adjust so that `make coverage` completes for coreutils.
There is no coverage for lib/parse-datetime.y
but everything else is fine.
* top/maint.mk (COVERAGE_CCOPTS): Since we're overriding CFLAGS,
add -Wno-error to relax warning requirements. Projects usually default
to -O2, and changing from that can very well induce new warnings.
(build-coverage, gen-coverage): Keep going on non-fatal errors.
+2025-09-09 Pádraig Brady <P@draigBrady.com>
+
+ maintainer-makefile: relax coverage requirements
+ * top/maint.mk (COVERAGE_CCOPTS): Since we're overriding CFLAGS,
+ add -Wno-error to relax warning requirements. Projects usually default
+ to -O2, and changing from that can very well induce new warnings.
+ (build-coverage, gen-coverage): Keep going on non-fatal errors.
+
2025-09-09 Bruno Haible <bruno@clisp.org>
Remove support for OSF/1.
$(MAKE) $(AM_MAKEFLAGS) clean
lcov --directory . --zerocounters
-COVERAGE_CCOPTS ?= "-g --coverage"
+COVERAGE_CCOPTS ?= "-g --coverage -Wno-error"
COVERAGE_OUT ?= doc/coverage
build-coverage:
$(MAKE) $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) check
mkdir -p $(COVERAGE_OUT)
lcov --directory . --output-file $(COVERAGE_OUT)/$(PACKAGE).info \
- --capture
+ --capture --ignore-errors negative,source
gen-coverage:
genhtml --output-directory $(COVERAGE_OUT) \
$(COVERAGE_OUT)/$(PACKAGE).info \
--frames --legend \
+ --ignore-errors source --synthesize-missing \
--title "$(PACKAGE_NAME)"
coverage: