summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-11-09 17:06:32 -0500
committerPeter Eisentraut <peter_e@gmx.net>2017-11-10 08:32:44 -0500
commit89afa724c6384b8f64f115f7b866c8625e158f22 (patch)
tree16a21c31e75756225498e7772f55f84628c2d405
parent89df643c3b3350de1b0e0d5cddd2f439972ca00f (diff)
Add -wnet to SP invocations
This causes a warning when accidentally backpatching an XML-style empty-element tag like <xref linkend="abc"/>.
-rw-r--r--doc/src/sgml/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index a3a44f67d99..183dd13a902 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -64,10 +64,11 @@ endif
# Enable some extra warnings
# -wfully-tagged needed to throw a warning on missing tags
# for older tool chains, 2007-08-31
+# -wnet catches XML-style empty-element tags like <xref linkend="abc"/>.
# Note: try "make SPFLAGS=-wxml" to catch a lot of other dubious constructs,
# in particular < and & that haven't been made into entities. It's far too
# noisy to turn on by default, unfortunately.
-override SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged
+override SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged -wnet
##
## Man pages