Closed
Bug 703510
Opened 15 years ago
Closed 7 years ago
Warnings about usage of uninitialized variables in nsSecureBrowserUIImpl::OnStateChange: saveSubBroken, saveSubNo
Categories
(Core :: Security: PSM, defect, P5)
Core
Security: PSM
Tracking
()
RESOLVED
DUPLICATE
of bug 832834
People
(Reporter: briansmith, Unassigned)
Details
(Whiteboard: [psm-cleanup])
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp: In member function 'virtual nsresult nsSecureBrowserUIImpl::OnStateChange(nsIWebProgress*, nsIRequest*, PRUint32, nsresult)':
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp:1071:13: warning: 'saveSubHigh' may be used uninitialized in this function
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp:1071:13: note: 'saveSubHigh' was declared here
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp:1072:13: warning: 'saveSubLow' may be used uninitialized in this function
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp:1072:13: note: 'saveSubLow' was declared here
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp:1073:13: warning: 'saveSubBroken' may be used uninitialized in this function
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp:1073:13: note: 'saveSubBroken' was declared here
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp:1074:13: warning: 'saveSubNo' may be used uninitialized in this function
../../../../../security/manager/boot/src/nsSecureBrowserUIImpl.cpp:1074:13: note: 'saveSubNo' was declared here
It seems like the warnings are bogus. The compiler cannot tell that prevContentSecurity will only be non-null when the block that initializes these variables is executed.
We should clean this up so that we don't have to keep seeing them in build logs.
Assigning to Kai based on CVS blame:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/security/manager/boot/src/nsSecureBrowserUIImpl.cpp#989
Comment 2•10 years ago
|
||
A few of these were removed, but some remain. I'm not sure the compiler is warning on this any more, since they're actually not used uninitialized, but it would be nice to clean up.
Summary: Warnings about usage of uninitialized variables in nsSecureBrowserUIImpl::OnStateChange: saveSubHigh, saveSubLow, saveSubBroken, saveSubBroken → Warnings about usage of uninitialized variables in nsSecureBrowserUIImpl::OnStateChange: saveSubBroken, saveSubNo
Whiteboard: [psm-cleanup]
Updated•9 years ago
|
Priority: -- → P5
Comment 3•7 years ago
|
||
This was fixed in bug 832834.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•