# HG changeset patch # User Franz Glasner # Date 1758460212 -7200 # Node ID 72c1b70d4f5c464e8cfb40cf244fe18b08958ded # Parent baeb8bdeff3a2e6f756bcb54f478436e9028312a Also apply -Werror=implicit-function-declaration diff -r baeb8bdeff3a -r 72c1b70d4f5c Makefile.freebsd --- a/Makefile.freebsd Sun Sep 21 13:11:30 2025 +0200 +++ b/Makefile.freebsd Sun Sep 21 15:10:12 2025 +0200 @@ -60,6 +60,8 @@ # Should always be done when fortifying: # https://github.com/ossf/wg-best-practices-os-developers/issues/659 # +# -Werror=implicit-function-declaration +# EXTRA_CHECKS?= 1 diff -r baeb8bdeff3a -r 72c1b70d4f5c mupdf-source/Makerules --- a/mupdf-source/Makerules Sun Sep 21 13:11:30 2025 +0200 +++ b/mupdf-source/Makerules Sun Sep 21 15:10:12 2025 +0200 @@ -107,6 +107,7 @@ ifneq ($(EXTRA_CHECKS),0) CFLAGS += -fno-delete-null-pointer-checks + CFLAGS += -Werror=implicit-function-declaration endif ifeq ($(OS),Darwin) diff -r baeb8bdeff3a -r 72c1b70d4f5c mupdf-source/scripts/wrap/__main__.py --- a/mupdf-source/scripts/wrap/__main__.py Sun Sep 21 13:11:30 2025 +0200 +++ b/mupdf-source/scripts/wrap/__main__.py Sun Sep 21 15:10:12 2025 +0200 @@ -1543,6 +1543,7 @@ cflags = os.environ.get('XCXXFLAGS', '') if os.environ.get('EXTRA_CHECKS', '1') != '0': cflags += ' -fno-delete-null-pointer-checks' + cflags += ' -Werror=implicit-function-declaration' windows_build_type = build_dirs.windows_build_type() so_version = get_so_version( build_dirs) diff -r baeb8bdeff3a -r 72c1b70d4f5c pipcl.py --- a/pipcl.py Sun Sep 21 13:11:30 2025 +0200 +++ b/pipcl.py Sun Sep 21 15:10:12 2025 +0200 @@ -1769,6 +1769,7 @@ general_flags += ' -O2 -DNDEBUG' if os.environ.get('EXTRA_CHECKS', '1') != '0': general_flags += ' -fno-delete-null-pointer-checks' + general_flags += ' -Werror=implicit-function-declaration' py_limited_api3 = f'-DPy_LIMITED_API={py_limited_api2}' if py_limited_api2 else ''