This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ada: Suppress warning on possibly unused out parameters in uintp.adb


Some more explanations after a mail exchange with Arnaud Charlet: the
UI_Div_Rem procedure computes either the division, the rest or both of
them of two universal integers. When only one of the results will be
used (as determined by the caller), the other one is not stored in the
"out" mode parameter.

The current GNAT in SVN/trunk gives a warning saying that those "out"
mode parameters may not be set. Those two pragmas suppress the
warnings.

Tested on x86.

  Sam
-- 
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]