Home | Contact | Pricing | News | Events | Partners | Mailing List | Site Map
  • Development log
  • Technical papers
  • Live docs

More Resources

Recent Papers

Browse by Technology

Dev Log Archives

Developer Center

[GNAT] Warnings on unused assignment to OUT formals

Monday October 9, 2006

A new warning switch (-gnatw.o) causes modifications to variables via OUT parameters to be treated as assignments from the point of view of warning generation (warning when the assigned value is unreferenced or clobbered by another assignment). This warning is not included in -gnatwa because it seems common to have ignored out parameters, so if you want this warning activated, it must be done explicitly (e.g. using -gnatwa.o).

 

Posted by Posted in Development Log, GNAT Compilation System