https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66526
Bug ID: 66526 Summary: Use of uninitialized variable Product: gcc Version: 4.7.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: pini_os at yahoo dot fr Target Milestone: --- Compiling Ada frontend with -Wuninitialized reports the following warning: gcc/ada/g-expect.adb:1338:7: warning: ‘INPUT’ is used uninitialized in this function gcc/ada/g-expect.adb:1339:7: warning: ‘OUTPUT’ is used uninitialized in this function gcc/ada/g-expect.adb:1340:7: warning: ‘ERROR’ is used uninitialized in this function In function ‘Set_Up_Child_Communications’, these local variables are only initialized within the ‘if No_Fork_On_Target’ but each is used twice outside of it. The uses are following an execvp call, so no harm on *nix systems, but the source is still oddly shaped. The uses of these variables should be controlled by the same condition as their initialization.