aboutsummaryrefslogtreecommitdiff
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:31:38 -0500
commita11e5a67d9a61bddb4ba7eec77e6671a0437f9fb (patch)
tree790cd086b17f2cda5947cc3b355ad11d1c201c77
parent4ea3c243b98da6d526960586e9acc6d22283ffa2 (diff)
downloadpostgresql-a11e5a67d9a61bddb4ba7eec77e6671a0437f9fb.tar.gz
postgresql-a11e5a67d9a61bddb4ba7eec77e6671a0437f9fb.zip
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 5baf04cf101..a2d6405e6b3 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -66,10 +66,11 @@ ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) $(GENERATED_SGML)
# 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
##