Closed
Bug 1045110
Opened 11 years ago
Closed 11 years ago
nsMemoryReporterManager.cpp:103:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
Categories
(Core :: Gecko Profiler, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
1.05 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
Newish build warning:
{
xpcom/base/nsMemoryReporterManager.cpp: In function 'nsresult GetProcSelfSmapsPrivate(int64_t*)':
xpcom/base/nsMemoryReporterManager.cpp: suggest parentheses around assignment used as truth value
xpcom/base/nsMemoryReporterManager.cpp:103:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (ptr = strstr(ptr, "Private")) {
^
}
Assignee | ||
Comment 1•11 years ago
|
||
This patch adds a layer of parens (which suppresses the compiler's "= vs == in while condition" concern).
Comment 2•11 years ago
|
||
Comment on attachment 8463466 [details] [diff] [review]
fix: add a layer of parens
Review of attachment 8463466 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for fixing the warning! This file is outside my jurisdiction, forwarding the review to Nicholas.
Attachment #8463466 -
Flags: review?(n.nethercote)
Attachment #8463466 -
Flags: review?(janx)
Attachment #8463466 -
Flags: feedback+
![]() |
||
Updated•11 years ago
|
Attachment #8463466 -
Flags: review?(n.nethercote) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Thanks! Tree's closed; reuploading patch with reviewer adjusted, and using checkin-needed.
Attachment #8463466 -
Attachment is obsolete: true
Attachment #8463707 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Attachment #8463707 -
Attachment description: fix v1a (with reviewer adjusted) → fix v1a (updated reviewer in commit message)
Assignee | ||
Updated•11 years ago
|
Attachment #8463707 -
Attachment description: fix v1a (updated reviewer in commit message) → fix v1a [r=njn] (updated reviewer in commit message)
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•