Closed
Bug 229897
Opened 21 years ago
Closed 21 years ago
Fix 'Suggest parentheses around assignment used as truth value' 'Blamed Build Warnings; Linux brad Clobber'
Categories
(SeaMonkey :: General, defect, P1)
SeaMonkey
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.7alpha
People
(Reporter: sgautherie, Assigned: roc)
References
(Blocks 1 open bug)
Details
Attachments
(2 obsolete files)
Reporter | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.7alpha
Reporter | ||
Comment 1•21 years ago
|
||
Patch for { mkaply 1. gfx/src/nsRegionImpl.cpp:138 (See build log excerpt) Suggest parentheses around assignment used as truth value 136 const nsRect* pSrc; 137 138 while (pSrc = ri.Next ()) 139 { 140 pDest->x = pSrc->x; }
Reporter | ||
Comment 2•21 years ago
|
||
Comment on attachment 138277 [details] [diff] [review] (Av1) </gfx/src/nsRegionImpl.cpp> 'r=?': (see comment 1) I have no compiler: Could you compile/test/review it ? Thanks.
Attachment #138277 -
Flags: review?(roc)
Reporter | ||
Comment 3•21 years ago
|
||
There are also these: { Unblamed 36. dirver.c:132 (no file match) (See build log excerpt) Suggest parentheses around assignment used as truth value 37. dirver.c:135 (no file match) (See build log excerpt) Suggest parentheses around assignment used as truth value 40. dirver.c:81 (no file match) (See build log excerpt) Suggest parentheses around assignment used as truth value 41. dirver.c:84 (no file match) (See build log excerpt) Suggest parentheses around assignment used as truth value 42. dirver.c:87 (no file match) (See build log excerpt) Suggest parentheses around assignment used as truth value } { mnt/4/tinderbox/brad/Linux_2.4.23backupboy-1_Clobber/mozilla/directory/c-sdk/ldap/build/dirver.c: In function `_GetVersions': /mnt/4/tinderbox/brad/Linux_2.4.23backupboy-1_Clobber/mozilla/directory/c-sdk/ldap/build/dirver.c:81: warning: suggest parentheses around assignment used as truth value /mnt/4/tinderbox/brad/Linux_2.4.23backupboy-1_Clobber/mozilla/directory/c-sdk/ldap/build/dirver.c:84: warning: suggest parentheses around assignment used as truth value /mnt/4/tinderbox/brad/Linux_2.4.23backupboy-1_Clobber/mozilla/directory/c-sdk/ldap/build/dirver.c:87: warning: suggest parentheses around assignment used as truth value /mnt/4/tinderbox/brad/Linux_2.4.23backupboy-1_Clobber/mozilla/directory/c-sdk/ldap/build/dirver.c: In function `_GenBuildDate': /mnt/4/tinderbox/brad/Linux_2.4.23backupboy-1_Clobber/mozilla/directory/c-sdk/ldap/build/dirver.c:132: warning: suggest parentheses around assignment used as truth value /mnt/4/tinderbox/brad/Linux_2.4.23backupboy-1_Clobber/mozilla/directory/c-sdk/ldap/build/dirver.c:135: warning: suggest parentheses around assignment used as truth value } But how to retrieve </directory/c-sdk/ldap/build/dirver.c> to prepare a patch ? Or how to get rid of it from the build ? { mozilla/ directory/ c-sdk/ ldap/ build/ Attic/ dirver.c (5.1) 5.1 mcs%netscape.com Apr 17 2002 Remove dirver.c and Makefile.client references to it (no longer used). } Or may be the v5.1 "failed" { MXR: dirver.c | 5.0 | Tldapcsdk_50_client_branch }
Keywords: helpwanted
Comment 4•21 years ago
|
||
I think: if ((foo = bar()) != nsnull) is preferable to if ((foo = bar()))
Reporter | ||
Updated•21 years ago
|
Attachment #138277 -
Attachment is obsolete: true
Attachment #138277 -
Flags: review?(roc)
Reporter | ||
Comment 6•21 years ago
|
||
Comment on attachment 138334 [details] [diff] [review] (Av1b) </gfx/src/nsRegionImpl.cpp> [Checked in: Comment 9] 'r=?': (see comment 1) I have no compiler: Could you compile/test/review it ? Thanks.
Attachment #138334 -
Flags: review?(roc)
Assignee | ||
Comment 7•21 years ago
|
||
Comment on attachment 138334 [details] [diff] [review] (Av1b) </gfx/src/nsRegionImpl.cpp> [Checked in: Comment 9] okay
Attachment #138334 -
Flags: superreview+
Attachment #138334 -
Flags: review?(roc)
Attachment #138334 -
Flags: review+
Assignee | ||
Updated•21 years ago
|
Assignee: gautheri → roc
Status: ASSIGNED → NEW
Assignee | ||
Comment 9•21 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•21 years ago
|
Attachment #138334 -
Attachment description: (Av1b) </gfx/src/nsRegionImpl.cpp> → (Av1b) </gfx/src/nsRegionImpl.cpp>
[Checked in: Comment 9]
Attachment #138334 -
Attachment is obsolete: true
Reporter | ||
Comment 10•21 years ago
|
||
Fixed !? Only one of the two reported files... What about comment 3 <dirver.c> ? (Still there in "Linux brad Clobber (info) on 02/20 17:58")
Updated•20 years ago
|
Product: Browser → Seamonkey
Reporter | ||
Comment 11•16 years ago
|
||
(In reply to comment #3) > Or may be the v5.1 "failed" > { > MXR: dirver.c | 5.0 | Tldapcsdk_50_client_branch > } MXR still finds this file in mozilla1.8 tree, but not in mozilla one anymore... :-)
Keywords: helpwanted
You need to log in
before you can comment on or make changes to this bug.
Description
•