[ros-bugs] [Bug 5068] New: Possible uniniatialized variable usages

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Mon Dec 28 08:53:25 CET 2009


http://www.reactos.org/bugzilla/show_bug.cgi?id=5068

           Summary: Possible uniniatialized variable usages
           Product: ReactOS
           Version: TRUNK
          Platform: x86 Hardware
        OS/Version: ReactOS
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: Other
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: samdwise51 at gmail.com
         QAContact: ros-bugs at reactos.org


I got this using gcc 4.4.2 and -O3, warning: gcc has been known to be wrong,
specially around PSEH


dll\win32\comctl32\comboex.c:568: warning: 'tmpcit.iImage' may be used
uninitialized in this function
dll\win32\comctl32\comboex.c:568: warning: 'tmpcit.iSelectedImage' may be used
uninitialized in this function
dll\win32\comctl32\comboex.c:568: warning: 'tmpcit.iOverlay' may be used
uninitialized in this function
dll\win32\comctl32\comboex.c:568: warning: 'tmpcit.iIndent' may be used
uninitialized in this function
dll\win32\comctl32\comboex.c:568: warning: 'tmpcit.lParam' may be used
uninitialized in this function

base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[0u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[1u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[2u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[3u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[4u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[5u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[6u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[7u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[8u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[9u]' may be used
uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[10u]' may be
used uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[11u]' may be
used uninitialized in this function
base\shell\explorer\shell\pane.cpp:186: warning: 'orgPositions[12u]' may be
used uninitialized in this function
dll\win32\glu32\libnurbs\nurbtess\sampleCompBot.cc:212: warning: 'segIndexMono'
may be used uninitialized in this function
dll\win32\glu32\libnurbs\nurbtess\sampleCompBot.cc:298: warning: 'segIndexMono'
may be used uninitialized in this function
dll\win32\glu32\libnurbs\nurbtess\sampleCompBot.cc:212: warning: 'segIndexMono'
may be used uninitialized in this function
dll\win32\glu32\libnurbs\nurbtess\sampleCompBot.cc:298: warning: 'segIndexMono'
may be used uninitialized in this function
dll\win32\glu32\libnurbs\nurbtess\sampleCompTop.cc:177: warning:
'segIndexSmall' may be used uninitialized in this function
dll\win32\glu32\libnurbs\nurbtess\sampleCompTop.cc:299: warning:
'segIndexSmall' may be used uninitialized in this function
dll\win32\glu32\libnurbs\nurbtess\sampleCompTop.cc:177: warning:
'segIndexSmall' may be used uninitialized in this function
dll\win32\glu32\libtess\normal.c:82: warning: 'minVert' may be used
uninitialized in this function
dll\win32\glu32\libtess\normal.c:82: warning: 'maxVert' may be used
uninitialized in this function

dll\win32\mciseq\mcimidi.c:297: warning: 'evtPulse' may be used uninitialized
in this function

dll\win32\msi\database.c:863: warning: 'num_columns' may be used uninitialized
in this function
dll\win32\msi\database.c:862: warning: 'num_types' may be used uninitialized in
this function
dll\win32\msi\database.c:862: warning: 'num_labels' may be used uninitialized
in this function
dll\win32\ole32\marshal.c:827: warning: value computed is not used
dll\win32\oleaut32\vartype.c:4014: warning: 'result' may be used uninitialized
in this function
dll\win32\oleaut32\vartype.c:4041: warning: 'cyRight' may be used uninitialized
in this function
dll\win32\oleaut32\vartype.c:4014: warning: 'result' may be used uninitialized
in this function
dll\win32\setupapi\parser.c:1072: warning: 'dirid' may be used uninitialized in
this function

subsystems\win32\win32k\objects\bitmaps.c:154: warning:
'dibs.dsBmih.biCompression' may be used uninitialized in this function
subsystems\win32\win32k\objects\icm.c:66: warning: 'Safelcs.dwFlags' may be
used uninitialized in this function
subsystems\win32\win32k\objects\path.c:877: warning: 'startpt.x' may be used
uninitialized in this function
subsystems\win32\win32k\objects\path.c:877: warning: 'startpt.y' may be used
uninitialized in this function
dll\win32\kernel32\misc\time.c:142: warning: 'SysTime' may be used
uninitialized in this function


lib\3rdparty\adns\src\parse.c: In function 'adns__findrr_anychk':
lib\3rdparty\adns\src\parse.c:169: error: 'eo_fls.cbyte' may be used
uninitialized in this function
lib\3rdparty\adns\src\parse.c:169: error: 'eo_fls.max' may be used
uninitialized in this function
lib\3rdparty\adns\src\parse.c:169: error: 'eo_fls.dglen' may be used
uninitialized in this function
lib\3rdparty\adns\src\parse.c:169: error: 'eo_fls.dgram' may be used
uninitialized in this function
lib\3rdparty\adns\src\parse.c:169: error: 'eo_fls.ads' may be used
uninitialized in this function
lib\3rdparty\adns\src\parse.c:175: error: 'eo_lablen' may be used uninitialized
in this function
lib\3rdparty\adns\src\parse.c:175: error: 'eo_labstart' may be used
uninitialized in this function

In file included from obj-i386\base\applications\mstsc\unit.c:10:
./base/applications/mstsc/mcs.c: In function 'mcs_recv_connect_response':
./base/applications/mstsc/mcs.c:154: error: 'length' may be used uninitialized
in this function
./base/applications/mstsc/mcs.c:111: error: 'length' may be used uninitialized
in this function
./base/applications/mstsc/mcs.c:111: note: 'length' was declared here

base\applications\regedit\security.c: In function 'RegKeyEditPermissions':
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data4[7u]' may be used uninitialized in this
function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data4[7u]' was declared here
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data4[6u]' may be used uninitialized in this
function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data4[6u]' was declared here
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data4[5u]' may be used uninitialized in this
function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data4[5u]' was declared here
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data4[4u]' may be used uninitialized in this
function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data4[4u]' was declared here
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data4[3u]' may be used uninitialized in this
function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data4[3u]' was declared here
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data4[2u]' may be used uninitialized in this
function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data4[2u]' was declared here
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data4[1u]' may be used uninitialized in this
function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data4[1u]' was declared here
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data4[0u]' may be used uninitialized in this
function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data4[0u]' was declared here
base\applications\regedit\security.c:782: error:
'ObjectInfo.guidObjectType.Data1' may be used uninitialized in this function
base\applications\regedit\security.c:849: note:
'ObjectInfo.guidObjectType.Data1' was declared here
mingw32-make: [obj-i386\base\applications\regedit\security_regedit.o] Error 1
(ignored)
[RC]       obj-i386\base\applications\regedt32\resource_regedt32.res
cc1.exe: warnings being treated as errors
base\applications\regedit\treeview.c: In function 'AddEntryToTree':
base\applications\regedit\treeview.c:122: error: 'tvi.stateMask' is used
uninitialized in this function
base\applications\regedit\treeview.c:122: error: 'tvi.state' is used
uninitialized in this function
base\applications\regedit\treeview.c:122: error: 'tvi.hItem' is used
uninitialized in this function


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Ros-bugs mailing list