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:08 -0500
commit9a8d3c4eeaf34966056a41a263c6e2ca4d5e4012 (patch)
tree30ef488e064dd3c0b2de4f519065bde9e4a6c983
parent1aba8e651ac3e37e1d2d875842de1e0ed22a651e (diff)
downloadpostgresql-9a8d3c4eeaf34966056a41a263c6e2ca4d5e4012.tar.gz
postgresql-9a8d3c4eeaf34966056a41a263c6e2ca4d5e4012.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 bcfd7db0bdd..df77a142e4d 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -66,7 +66,8 @@ 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
-override SPFLAGS += -wall -wno-unused-param -wfully-tagged
+# -wnet catches XML-style empty-element tags like <xref linkend="abc"/>.
+override SPFLAGS += -wall -wno-unused-param -wfully-tagged -wnet
# Additional warnings for XML compatibility. The conditional is meant
# to detect whether we are using OpenSP rather than the ancient
# original SP.