summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-05-09 13:25:01 +0200
committerAlejandro Colomar <alx@kernel.org>2023-05-09 13:26:29 +0200
commit4857d7dc1720d1af75da7e7ff1636e824dce46fb (patch)
tree88b7e461367909b3d2d4d4157fa84eeb449dab1d
parent5dc7c1ee6efe81d68d153169ae72cd3ceeec26b8 (diff)
*.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: <https://lists.gnu.org/archive/html/groff/2023-05/msg00046.html> Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--share/mk/build/catman.mk1
-rw-r--r--share/mk/build/groff.mk2
2 files changed, 2 insertions, 1 deletions
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