Closed
Bug 784776
Opened 13 years ago
Closed 13 years ago
build fails with clang 3.2
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: jbeich, Assigned: jbeich)
References
()
Details
(Whiteboard: [fixed-in-hunspell-1.3.x])
Attachments
(3 files, 2 obsolete files)
748 bytes,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
903 bytes,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
2.25 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
No description provided.
mozilla-central-5b057a27cd0e/ipc/glue/CrossProcessMutex_unimplemented.cpp:43:10: error:
cannot initialize return object of type 'CrossProcessMutexHandle'
(aka 'unsigned long') with an rvalue of type 'nullptr_t'
return NULL;
^~~~
/usr/include/sys/_null.h:35:14: note: expanded from macro 'NULL'
^~~~~~~
Attachment #654347 -
Flags: review?(jones.chris.g)
http://pubs.opengroup.org/onlinepubs/009696699/functions/time.html
mozilla-central-5b057a27cd0e/intl/locale/src/unix/nsDateTimeFormatUnix.cpp:103:8: error:
no matching function for call to 'time'
tt = time((time_t)NULL);
^~~~
/usr/include/time.h:150:8: note: candidate function not viable: no known conversion
from 'time_t' (aka 'long') to 'time_t *' (aka 'long *') for 1st argument
time_t time(time_t *);
^
Attachment #654350 -
Flags: review?
Attachment #654350 -
Flags: review? → review?(smontagu)
Updated•13 years ago
|
Attachment #654350 -
Flags: review?(smontagu) → review+
v2. Follow bug 783206 example and use nullptr.
Attachment #654350 -
Attachment is obsolete: true
Attachment #655302 -
Flags: review?(smontagu)
Comment on attachment 654347 [details] [diff] [review]
Bug 784776 - Don't assume NULL is numeric.
Use nullptr if it compiles here.
Attachment #654347 -
Flags: review?(jones.chris.g) → review+
(In reply to Chris Jones [:cjones] [:warhammer] from comment #4)
> Comment on attachment 654347 [details] [diff] [review]
> Bug 784776 - Don't assume NULL is numeric.
>
> Use nullptr if it compiles here.
It doesn't (on 103383:e874475efe15).
ipc/glue/CrossProcessMutex_unimplemented.cpp:43:10: error:
cannot initialize return object of type 'CrossProcessMutexHandle'
(aka 'unsigned long') with an rvalue of type 'nullptr_t'
return nullptr;
^~~~~~~
1 error generated.
Same as ipc/glue one. A warning turned into an error by -std=gnu++0x.
extensions/spellcheck/hunspell/src/affentry.hxx:87:94: error:
cannot initialize a parameter of type 'unsigned short' with an rvalue of type
'nullptr_t'
...char * word, int len, char in_compound, const FLAG needflag = NULL);
^ ~~~~
extensions/spellcheck/hunspell/src/affentry.hxx:87:94: note:
passing argument to parameter 'needflag' here
extensions/spellcheck/hunspell/src/affentry.hxx:150:103: error:
cannot initialize a parameter of type 'unsigned short' with an rvalue of type
'nullptr_t'
...* word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL);
^ ~~~~
extensions/spellcheck/hunspell/src/affentry.hxx:150:103: note:
passing argument to parameter 'needflag' here
2 errors generated.
Attachment #655381 -
Flags: review?(bugs)
Comment 7•13 years ago
|
||
Comment on attachment 655381 [details] [diff] [review]
Bug 784776 - Don't assume NULL is numeric. (hunspell)
Shouldn't you use FLAG_NULL ?
Attachment #655381 -
Flags: review?(bugs) → review-
(In reply to Olli Pettay [:smaug] from comment #7)
> Shouldn't you use FLAG_NULL ?
FLAG_NULL works, too.
Attachment #655381 -
Attachment is obsolete: true
Attachment #655391 -
Flags: review?(bugs)
Updated•13 years ago
|
Attachment #655391 -
Flags: review?(bugs) → review+
Comment 9•13 years ago
|
||
Though, I think we add a comment about the changes made to Mozilla's tree...
need to find the file where.
Comment 10•13 years ago
|
||
Or maybe not... and this change is trivial anyway.
Assignee | ||
Comment 11•13 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #9)
> Though, I think we add a comment about the changes made to Mozilla's tree...
> need to find the file where.
Someone else already submitted it upstream.
http://sourceforge.net/tracker/?func=detail&aid=3557292&group_id=143754&atid=756395
Updated•13 years ago
|
Attachment #655302 -
Flags: review?(smontagu) → review+
Keywords: checkin-needed
Comment 12•13 years ago
|
||
I updated README.hunspell in the Hunspell directory with this bug number before landing.
https://hg.mozilla.org/integration/mozilla-inbound/rev/b5078f2a37dd
https://hg.mozilla.org/integration/mozilla-inbound/rev/77cd258827fd
https://hg.mozilla.org/integration/mozilla-inbound/rev/7dd78bf25baa
Assignee: nobody → jbeich
Flags: in-testsuite-
Keywords: checkin-needed
Whiteboard: [fixed-in-hunspell-1.3.3]
Comment 13•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b5078f2a37dd
https://hg.mozilla.org/mozilla-central/rev/77cd258827fd
https://hg.mozilla.org/mozilla-central/rev/7dd78bf25baa
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Blocks: clang-macosx
Updated•11 years ago
|
Depends on: hunspell-1.3.3
Comment 15•11 years ago
|
||
This never got upstreamed.
No longer depends on: hunspell-1.3.3
Whiteboard: [fixed-in-hunspell-1.3.3] → [fixed-in-hunspell-1.3.x]
You need to log in
before you can comment on or make changes to this bug.
Description
•