From 4857d7dc1720d1af75da7e7ff1636e824dce46fb Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Tue, 9 May 2023 13:25:01 +0200 Subject: *.mk: Use -wbreak in TROFFFLAGS, and -ww in NROFFFLAGS We don't need to see all warnings everywhere we call troff(1). Instead, put all warnings in nroff mode, which we only run for the warnings, and then only ask for warnings that depend on the output in other invocations of troff(1). -wbreak happens to enable only and all so-called "output warnings". It is an implementation detail of groff(1), but that's the best we can do now. If groff(1) changes their warnings organization, we'll need to adapt to it. Link: Cc: "G. Branden Robinson" Signed-off-by: Alejandro Colomar --- share/mk/build/catman.mk | 1 + share/mk/build/groff.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/share/mk/build/catman.mk b/share/mk/build/catman.mk index 34f868ec8..5686ae12a 100644 --- a/share/mk/build/catman.mk +++ b/share/mk/build/catman.mk @@ -27,6 +27,7 @@ NROFF_OUT_DEVICE := $(shell $(LOCALE) charmap \ DEFAULT_NROFFFLAGS := -T$(NROFF_OUT_DEVICE) DEFAULT_NROFFFLAGS += -rLL=$(NROFF_LINE_LENGTH)n DEFAULT_NROFFFLAGS += -rCHECKSTYLE=$(TROFF_CHECKSTYLE_LVL) +DEFAULT_NROFFFLAGS += -ww EXTRA_NROFFFLAGS := NROFFFLAGS := $(DEFAULT_NROFFFLAGS) $(EXTRA_NROFFFLAGS) diff --git a/share/mk/build/groff.mk b/share/mk/build/groff.mk index 63162f16e..b619aab82 100644 --- a/share/mk/build/groff.mk +++ b/share/mk/build/groff.mk @@ -18,7 +18,7 @@ EXTRA_EQNFLAGS := EQNFLAGS := $(DEFAULT_EQNFLAGS) $(EXTRA_EQNFLAGS) EQN := eqn -DEFAULT_TROFFFLAGS := -ww +DEFAULT_TROFFFLAGS := -wbreak EXTRA_TROFFFLAGS := TROFFFLAGS := $(DEFAULT_TROFFFLAGS) $(EXTRA_TROFFFLAGS) TROFF := troff -- cgit v1.2.3