From 0abc7cdb875e63ff110f292eb666078d7abd1e90 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 9 Nov 2017 17:06:32 -0500 Subject: [PATCH] Add -wnet to SP invocations This causes a warning when accidentally backpatching an XML-style empty-element tag like . --- doc/src/sgml/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 24b895f3c3..d76de661e6 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -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 . # 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