Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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:32:00 +0000 (08:32 -0500)
This causes a warning when accidentally backpatching an XML-style
empty-element tag like <xref linkend="abc"/>.

doc/src/sgml/Makefile

index 24b895f3c397449dc6b94ee67357117090d120bc..d76de661e634389d9bfdba37196248dcd93cd25e 100644 (file)
@@ -72,10 +72,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