Silence the wall of warnings on amd64 and other clang architectures.
sparc64/ports-gcc doesn't print them, so don't suppress them there.

Feedback? OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/xpdf/Makefile,v
retrieving revision 1.98
diff -u -p -r1.98 Makefile
--- Makefile    22 Oct 2023 15:16:54 -0000      1.98
+++ Makefile    22 Oct 2023 15:20:38 -0000
@@ -47,3 +47,8 @@ do-install:
                ${PREFIX}/share/examples/xpdf/xpdfrc
 
 .include <bsd.port.mk>
+
+.if ${CHOSEN_COMPILER} == "base-clang"
+# reduce warning spam, 86% less build log (1262 -> 179 lines)
+CXXFLAGS+=     -Wno-writable-strings
+.endif

Reply via email to