A confusion of compiler messages.
A confusion of compiler messages.
I just noticed in D2007 that some warning messages are turned off by setting {$HINTS OFF}. I wonder whether that sort of confusion in the compiler has been reduced over time?
I just noticed in D2007 that some warning messages are turned off by setting {$HINTS OFF}. I wonder whether that sort of confusion in the compiler has been reduced over time?
I don't suppose the prefix of the number has gone unnoticed. It implies that the message was intended to be a hint. Perhaps the hints off directive simply iterates through the list of messages and suppresses all that begin with H.
ReplyDeleteH2219 is a hint, not a warning: it has the H prefix (warnings have W, errors E, etc) and (IMO) a variable / method that's declared but not used is something you'd expect to be a hint-level message not a warning-level.
ReplyDeleteSo why does the IDE show '[DCC Warning]'? I'd guess it's a bug in the compiler's output / communication with the IDE. In XE2 and XE7, the IDE shows '[DCC Hint]'. Linking it to the hints on/off flag makes more sense in that situation.
David Millington
ReplyDeleteAgreed, and it's good to know some attention has been given to correlating the message levels in later releases.