Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2024-02

Compiler warning when built with -dDEBUG_NODE_XML

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

J. Gareth Moreton

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

Reply by email

Michael Van Canneyt
to J. Gareth Moreton
J. Gareth Moreton wrote 13 lines
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.

Sorry about that, I fixed it.

Michael.

Reply by email