[Bug ada/37620] warning: variable "X" is not referenced eventhough it is referenced by (implicit) procedure calls
sam at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 23 11:33:00 GMT 2008
------- Comment #4 from sam at gcc dot gnu dot org 2008-09-23 11:32 -------
I don't agree with your reasoning: X is not referenced. The fact that it has a
constructor should not change anything. For example, access types are
initialized to Null as well, so you could count that as a reference.
You can suppress the warning by using
pragma Unreferenced (X);
--
sam at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37620
More information about the Gcc-bugs
mailing list