Closed Bug 311646 Opened 20 years ago Closed 20 years ago

Fix compile warnings in mozilla/xpinstall

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect)

x86
Linux
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

Details

Attachments

(1 file)

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'
Attached patch PatchSplinter Review
Attachment #198912 - Flags: superreview?(benjamin)
Attachment #198912 - Flags: review?(benjamin)
+ else if ( curr == PRUint32(kNotFound) ) why not make curr a signed variable?
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 on attachment 198912 [details] [diff] [review] Patch r=dveditz
Attachment #198912 - Flags: review?(benjamin) → review+
Attachment #198912 - Flags: superreview?(benjamin) → superreview+
Assignee: xpi-engine → mats.palmgren
Checked in to trunk 2005-10-16 08:52 PDT. -> FIXED
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: