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

Commit 9a8d3c4

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 1aba8e6 commit 9a8d3c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/src/sgml/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ 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-
override SPFLAGS += -wall -wno-unused-param -wfully-tagged
69+
# -wnet catches XML-style empty-element tags like <xref linkend="abc"/>.
70+
override SPFLAGS += -wall -wno-unused-param -wfully-tagged -wnet
7071
# Additional warnings for XML compatibility. The conditional is meant
7172
# to detect whether we are using OpenSP rather than the ancient
7273
# original SP.

0 commit comments

Comments
 (0)