Bug 53230 - s-fileio.adb:308:10: warning: ‘Errno’ may be used uninitialized in this function
Summary: s-fileio.adb:308:10: warning: ‘Errno’ may be used uninitialized in this function
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 11:59 UTC by John David Anglin
Modified: 2012-05-05 20:14 UTC (History)
1 user (show)

See Also:
Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
Build: hppa-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2012-05-04 11:59:56 UTC
/home/dave/gnu/gcc/objdir/./gcc/xgcc -B/home/dave/gnu/gcc/objdir/./gcc/ -B/home/
dave/opt/gnu/gcc/gcc-4.7.0/hppa-linux-gnu/bin/ -B/home/dave/opt/gnu/gcc/gcc-4.7.
0/hppa-linux-gnu/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.7.0/hppa-linux-gnu/i
nclude -isystem /home/dave/opt/gnu/gcc/gcc-4.7.0/hppa-linux-gnu/sys-include    -
c -g -O2   -W -Wall -gnatpg -nostdinc   s-fishfl.ads -o s-fishfl.o
s-fileio.adb: In function ‘System.File_Io.Close’:
s-fileio.adb:308:10: warning: ‘Errno’ may be used uninitialized in this function
 [-Wmaybe-uninitialized]
          Raise_Device_Error (null, Errno);
          ^
Comment 1 Eric Botcazou 2012-05-05 20:14:12 UTC
False positive.