Closed
Bug 311646
Opened 20 years ago
Closed 20 years ago
Fix compile warnings in mozilla/xpinstall
Categories
(Core Graveyard :: Installer: XPInstall Engine, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
Details
Attachments
(1 file)
|
7.21 KB,
patch
|
dveditz
:
review+
benjamin
:
superreview+
|
Details | Diff | Splinter Review |
Fix compile warnings in mozilla/xpinstall.
nsInstall.cpp:1544: warning: assignment of negative value `MALFORMED_INSTALL'
to `PRUint32'
nsInstall.cpp:1544: warning: argument of negative value `MALFORMED_INSTALL' to
`unsigned int'
--
nsInstallTrigger.cpp:184: warning: `nsIScriptGlobalObject*globalObject' might
be used uninitialized in this function
--
nsInstallFolder.cpp:653: warning: comparison between signed and unsigned
integer expressions
--
nsInstallFile.cpp:156: warning: unused variable `nsresult rv'
nsInstallExecute.cpp
--
nsXPITriggerInfo.h:89: warning: `nsXPITriggerItem::mFlags' will be initialized
after
nsXPITriggerInfo.h:86: warning: `PRBool nsXPITriggerItem::mHashFound'
nsXPITriggerInfo.cpp:100: warning: unused variable `PRUint32 htype'
| Assignee | ||
Comment 1•20 years ago
|
||
| Assignee | ||
Updated•20 years ago
|
Attachment #198912 -
Flags: superreview?(benjamin)
Attachment #198912 -
Flags: review?(benjamin)
Comment 2•20 years ago
|
||
+ else if ( curr == PRUint32(kNotFound) )
why not make curr a signed variable?
| Assignee | ||
Comment 3•20 years ago
|
||
Then I would have to make 'start' signed too and then cast
aRelativePath.Length() to PRInt32.
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/xpinstall/src/nsInstallFolder.cpp&rev=1.69&root=/cvsroot&mark=647,673#638
Maybe the real bug is that FindChar() etc should return PRUint32
and that 'kNotFound' should be unsigned, but I guess it's
a bit late to change something like that now.
Comment 4•20 years ago
|
||
Comment on attachment 198912 [details] [diff] [review]
Patch
r=dveditz
Attachment #198912 -
Flags: review?(benjamin) → review+
Updated•20 years ago
|
Attachment #198912 -
Flags: superreview?(benjamin) → superreview+
| Assignee | ||
Updated•20 years ago
|
Assignee: xpi-engine → mats.palmgren
| Assignee | ||
Comment 5•20 years ago
|
||
Checked in to trunk 2005-10-16 08:52 PDT.
-> FIXED
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•