This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] ada: Suppress warning on possibly unused out parameters in uintp.adb
On 27/10, Arnaud Charlet wrote:
| > 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.
|
| Could you give more details about this warning ? I cannot reproduce it on my
| build.
|
| How did you configure and build GNAT ?
./configure --prefix=/home/sam/local/i386-linux --enable-languages="c ada" --disable-bootstrap
make
| Could you copy/paste the gcc call and the output from GNAT showing the
| command used and the warning displayed ?
It occurs during the build of gnatmake:
../../xgcc -B../../ -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -gnatpg -gnata -I- -I../rts -I. -I/home/sam/Dev/gcc/gcc/ada /home/sam/Dev/gcc/gcc/ada/uintp.adb -o uintp.o
/home/sam/Dev/gcc/gcc/ada/uintp.adb: In function âUintp.Ui_Div_Remâ:
/home/sam/Dev/gcc/gcc/ada/uintp.adb:171: warning: âQuotientâ may be used uninitialized in this function
/home/sam/Dev/gcc/gcc/ada/uintp.adb:171: note: âQuotientâ was declared here
/home/sam/Dev/gcc/gcc/ada/uintp.adb:172: warning: âRemainderâ may be used uninitialized in this function
/home/sam/Dev/gcc/gcc/ada/uintp.adb:172: note: âRemainderâ was declared here