mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Add -wnet to SP invocations
This causes a warning when accidentally backpatching an XML-style empty-element tag like <xref linkend="abc"/>.
This commit is contained in:
		@@ -64,10 +64,11 @@ endif
 | 
				
			|||||||
# Enable some extra warnings
 | 
					# Enable some extra warnings
 | 
				
			||||||
# -wfully-tagged needed to throw a warning on missing tags
 | 
					# -wfully-tagged needed to throw a warning on missing tags
 | 
				
			||||||
# for older tool chains, 2007-08-31
 | 
					# 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,
 | 
					# 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
 | 
					# in particular < and & that haven't been made into entities.  It's far too
 | 
				
			||||||
# noisy to turn on by default, unfortunately.
 | 
					# 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
 | 
					## Man pages
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user