Closed
Bug 666688
Opened 14 years ago
Closed 13 years ago
toolkit/components/typeheadfind - compiler warnings on mac
Categories
(Toolkit :: Find Toolbar, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: joey, Assigned: atulagrwl)
References
(Blocks 1 open bug)
Details
(Whiteboard: [build_warning])
Attachments
(2 obsolete files)
% uname -a
Darwin banshee.local 10.7.4 Darwin Kernel Version 10.7.4: Mon Apr 18 21:24:17 PDT 2011; root:xnu-1504.14.12~3/RELEASE_X86_64 x86_64
/mozilla/sandbox/gml/toolkit/components/typeaheadfind/nsTypeAheadFind.cpp:567: warning: enumeral mismatch in conditional expression: 'nsITypeAheadFind::<anonymous enum>' vs 'nsITypeAheadFind::<anonymous enum>'
/mozilla/sandbox/gml/toolkit/components/places/History.cpp:1282: warning: ignoring return value of 'bool mozilla::dom::PContentParent::SendNotifyVisited(const IPC::URI&)', declared with attribute warn_unused_result
Reporter | ||
Updated•14 years ago
|
Whiteboard: [build_warnings]
Updated•14 years ago
|
Whiteboard: [build_warnings] → [build_warning]
Updated•14 years ago
|
Blocks: buildwarning
Assignee | ||
Comment 1•13 years ago
|
||
Patch for first issue. This cannot be fixed in any better way (in my knowledge) as the enums are generated from idl files. Enums needs to be clubbed together to fix this issue.
Second issue does not occur now.
Assignee: nobody → atulagrwl
Assignee | ||
Updated•13 years ago
|
Attachment #556871 -
Flags: review?(Ms2ger)
Comment 2•13 years ago
|
||
Can we not do this change and wait for bug 585099 instead?
Assignee | ||
Comment 3•13 years ago
|
||
Definitely, I didn't know that such a bug exists. If we can fix the root cause, there is no point in fixing the implications :).
Comment 4•13 years ago
|
||
Comment on attachment 556871 [details] [diff] [review]
Patch v1
You shouldn't introduce tabs, and the typical way to fix this warning is
*aResult = hasWrapped
? static_cast<PRUint16>(FIND_WRAPPED)
: static_cast<PRUint16>(FIND_FOUND);
And please ask a toolkit peer: <https://wiki.mozilla.org/Modules/Toolkit#Toolkit> to review the patch.
Attachment #556871 -
Flags: review?(Ms2ger) → review-
Assignee | ||
Comment 5•13 years ago
|
||
Changes suggested.
Attachment #556871 -
Attachment is obsolete: true
Attachment #558557 -
Flags: review?(dolske)
Comment 6•13 years ago
|
||
Err, isn't the implication from comment 2 that the about-to-land bug 585099 will fix this without code changes?
Comment 7•13 years ago
|
||
Comment on attachment 558557 [details] [diff] [review]
Patch v2
Clearing review on the assumption(?) 585099 eliminates the need for this.
Attachment #558557 -
Flags: review?(dolske)
Assignee | ||
Updated•13 years ago
|
Attachment #558557 -
Attachment is obsolete: true
Assignee | ||
Comment 8•13 years ago
|
||
Marking the bug as Resolved/Fixed as the dependent bug fix has been checked-in.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•