Add -wnet to SP invocations
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 9 Nov 2017 22:06:32 +0000 (17:06 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 10 Nov 2017 13:31:08 +0000 (08:31 -0500)
This causes a warning when accidentally backpatching an XML-style
empty-element tag like <xref linkend="abc"/>.

doc/src/sgml/Makefile

index bcfd7db0bdd730190de3d131b1a656f9bdf3c8fb..df77a142e4d524f76637172097533620940d11bd 100644 (file)
@@ -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.