Closed
Bug 743573
Opened 13 years ago
Closed 13 years ago
Build warnings in dom/
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 4 obsolete files)
|
27.13 KB,
patch
|
mounir
:
review+
|
Details | Diff | Splinter Review |
|
13.22 KB,
patch
|
mounir
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #613186 -
Flags: review?(mounir)
Comment 1•13 years ago
|
||
Comment on attachment 613186 [details] [diff] [review]
Patch v1
Review of attachment 613186 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/base/nsDOMClassInfo.cpp
@@ +8795,5 @@
> }
>
> + nsHTMLDocument* doc = GetDocument(obj);
> + nsISupports* result = NULL;
> + nsWrapperCache* cache = NULL;
Could you use nsnull instead?
::: dom/plugins/ipc/PluginModuleParent.cpp
@@ +585,5 @@
>
> PluginIdentifierParent*
> PluginModuleParent::GetIdentifierForNPIdentifier(NPP npp, NPIdentifier aIdentifier)
> {
> + PluginIdentifierParent* ident = NULL;
nsnull?
Attachment #613186 -
Flags: review?(mounir) → review+
| Assignee | ||
Comment 2•13 years ago
|
||
I don't remember what went wrong with the previous patch, but this passes try: <https://tbpl.mozilla.org/?tree=Try&rev=cc52db937c0f>.
Attachment #613186 -
Attachment is obsolete: true
Attachment #640633 -
Flags: review?(mounir)
Comment 3•13 years ago
|
||
Comment on attachment 640633 [details] [diff] [review]
Patch v2
Review of attachment 640633 [details] [diff] [review]:
-----------------------------------------------------------------
Unfortunately, I don't have cycles for that. Moving to khuey hoping he has some.
Attachment #640633 -
Flags: review?(mounir) → review?(khuey)
| Assignee | ||
Comment 4•13 years ago
|
||
Attachment #640633 -
Attachment is obsolete: true
Attachment #640633 -
Flags: review?(khuey)
Attachment #643349 -
Flags: review?(jonas)
| Assignee | ||
Comment 5•13 years ago
|
||
Attachment #643349 -
Attachment is obsolete: true
Attachment #643349 -
Flags: review?(jonas)
Attachment #644953 -
Flags: review?(jonas)
| Assignee | ||
Comment 6•13 years ago
|
||
Attachment #644953 -
Attachment is obsolete: true
Attachment #644953 -
Flags: review?(jonas)
Attachment #648484 -
Flags: review?(jonas)
Comment 7•13 years ago
|
||
Comment on attachment 648484 [details] [diff] [review]
Patch v5
Review of attachment 648484 [details] [diff] [review]:
-----------------------------------------------------------------
Does that make dom/ fully warning-free? If so, maybe we could add something in the Makfile rules that make dom/ subdirectories warning-free.
Attachment #648484 -
Flags: review?(jonas) → review+
| Assignee | ||
Comment 8•13 years ago
|
||
The static assertions are because of clang errors like:
../../../dom/indexedDB/OpenDatabaseHelper.cpp:27:1: error: unused function 'pr_static_assert' [-Werror,-Wunused-function]
PR_STATIC_ASSERT(JS_STRUCTURED_CLONE_VERSION == 1);
^
../../dist/include/prtypes.h:535:17: note: expanded from macro 'PR_STATIC_ASSERT'
extern void pr_static_assert(int arg[(condition) ? 1 : -1])
^
1 error generated.
Attachment #649332 -
Flags: review?(mounir)
Updated•13 years ago
|
Attachment #649332 -
Flags: review?(mounir) → review+
| Assignee | ||
Comment 9•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
| Assignee | ||
Comment 10•13 years ago
|
||
And I pushed
https://hg.mozilla.org/integration/mozilla-inbound/rev/08b1e1a4b851
with fixes from Aryeh.
Comment 11•13 years ago
|
||
Comment 12•13 years ago
|
||
This is now causing
dom/base/nsDOMClassInfo.cpp:9069:29: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
Casting 32 bit int to void *: tsk, tsk...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 13•13 years ago
|
||
This is on a x86-64 bit linux system.
I'm confused as to why the buildbots didn't catch this--do we not turn on warnings-as-errors there?
Comment 14•13 years ago
|
||
These too:
dom/plugins/base/nsPluginNativeWindowGtk2.cpp:202:147: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
dom/plugins/ipc/PluginInstanceParent.cpp:409:48: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
| Assignee | ||
Comment 15•13 years ago
|
||
I'll fix those in bug 781058.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Depends on: CVE-2013-0774
Updated•13 years ago
|
No longer depends on: CVE-2013-0774
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•