Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a11e5a6

Browse files
committed
Add -wnet to SP invocations
This causes a warning when accidentally backpatching an XML-style empty-element tag like <xref linkend="abc"/>.
1 parent 4ea3c24 commit a11e5a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/src/sgml/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) $(GENERATED_SGML)
6666
# Enable some extra warnings
6767
# -wfully-tagged needed to throw a warning on missing tags
6868
# for older tool chains, 2007-08-31
69+
# -wnet catches XML-style empty-element tags like <xref linkend="abc"/>.
6970
# Note: try "make SPFLAGS=-wxml" to catch a lot of other dubious constructs,
7071
# in particular < and & that haven't been made into entities. It's far too
7172
# noisy to turn on by default, unfortunately.
72-
override SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged
73+
override SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged -wnet
7374

7475

7576
##

0 commit comments

Comments
 (0)