[fpc-devel] Compiler warning when built with -dDEBUG_NODE_XML

J. Gareth Moreton gareth at moreton-family.com
Wed Feb 14 23:49:26 CET 2024


Hi everyone,

After some recent updates to the trunk, the compiler no longer 
successfully builds when -dDEBUG_NODE_XML is specified:

symsym.pas(2885,9) Warning: (treated as error) Case statement does not 
handle all possible cases

This is located within "procedure TConstSym.XMLPrintConstData(var T: 
Text);", which outputs information on defined constants into the node 
dump.  I assume this is because of commit 
fe62b3ace8c237d8bd1800beb5969e5cb540723f (Michael Van Canneyt's work) 
which introduces the "constwresourcestring" constant type, which isn't 
handled by the identified case block.

Kit



More information about the fpc-devel mailing list