changeset 32:72c1b70d4f5c

Also apply -Werror=implicit-function-declaration
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 21 Sep 2025 15:10:12 +0200
parents baeb8bdeff3a
children c4daa0c83d64
files Makefile.freebsd mupdf-source/Makerules mupdf-source/scripts/wrap/__main__.py pipcl.py
diffstat 4 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 
 
--- 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)
--- 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)
--- 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 ''