Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Fix Clang warnings

RESOLVED FIXED in mozilla10

Status

()

Core
JavaScript Engine
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: jandem, Assigned: jandem)

Tracking

unspecified
mozilla10
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 569344 [details] [diff] [review]
Patch

This patch fixes a bunch of warnings like these:

1) jsinfer.cpp:350:5: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
    *((int*)NULL) = 0;  /* Should never be reached */
    ^~~~~~~~~~~~~
jsinfer.cpp:350:5: note: consider using __builtin_trap() or qualifying pointer with 'volatile'

2) An unused parameter in editline.c

3) jswrapper.cpp:880:16: warning: explicit instantiation of 'js::SecurityWrapper' must occur in namespace 'js' [-Wc++0x-compat]
template class SecurityWrapper<Wrapper>;

With this patch there are still many warnings caused by the JS_DEFINE_CALLINFO_* macros. The fix there is not obvious so I'll just ignore them until the tracer is gone.
Attachment #569344 - Flags: review?(luke)

Comment 1

6 years ago
The summury gived the impression of a meta-bug. Is it?

Comment 2

6 years ago
The summury gives the impression of a meta-bug. Is it?

Comment 3

6 years ago
Comment on attachment 569344 [details] [diff] [review]
Patch

Thanks
Attachment #569344 - Flags: review?(luke) → review+
(Assignee)

Comment 4

6 years ago
http://hg.mozilla.org/integration/mozilla-inbound/rev/6780aa86cf87
Assignee: general → jandemooij
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla10
(Assignee)

Comment 5

6 years ago
(In reply to David Bruant from comment #2)
> The summury gives the impression of a meta-bug. Is it?

No, it was not supposed to be a meta-bug :)

Comment 6

6 years ago
https://hg.mozilla.org/mozilla-central/rev/6780aa86cf87
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.