Closed Bug 1345719 Opened 7 years ago Closed 6 years ago

ActorsParent.cpp:8632:5: warning: 'removed' may be used uninitialized in this function [-Wmaybe-uninitialized]

Categories

(Core :: Storage: Quota Manager, defect, P3)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: shawnjohnjr, Unassigned)

Details

mozilla-inbound/dom/quota/ActorsParent.cpp: In function 'nsresult mozilla::dom::quota::{anonymous}::UpgradeStorageFrom1_0To2_0Helper::DoUpgrade()':
mozilla-inbound/dom/quota/ActorsParent.cpp:8632:5: warning: 'removed' may be used uninitialized in this function [-Wmaybe-uninitialized]
mozilla-inbound/dom/quota/ActorsParent.cpp:8627:10: note: 'removed' was declared here
Priority: -- → P3
What compiler and what OS ?

I don't see any warnings on mac with clang. Treeherder is also happy and it uses --enable-warnings-as-errors as far as I know.
(In reply to Jan Varga [:janv] from comment #1)
> What compiler and what OS ?
> 
> I don't see any warnings on mac with clang. Treeherder is also happy and it
> uses --enable-warnings-as-errors as far as I know.
gcc 5.4, on Linux X86 64bit (Ubuntu 16.04). It's just the "-Wmaybe-uninitialized" option, and it won't stop the building process.
Hello,
the |removed| boolean is declared but not initialized.
Its value is supposed to be set by a call to MaybeRemoveAppsData
But some paths in MaybeRemoveAppsData do not set the boolean to a value.
However, when MaybeRemoveAppsData does not set the boolean, the return value of the function seems to prevent reading the the uninitialized boolean.
So i din't think there is a bug here, what do you think?
Thanks,
Close this bug.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.