Closed
Bug 797834
Opened 13 years ago
Closed 13 years ago
build error on OSX 10.6 in widget cocoa
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: emannion, Assigned: smichaud)
References
Details
Attachments
(1 file)
|
1.00 KB,
patch
|
dwalkowski
:
review+
|
Details | Diff | Splinter Review |
On building the tip of the Alder branch I get this error below.
I'm on OSX 10.6, building using clang. I do not get this error using 10.7
Users/Enda/code/mozilla/alder_default/alder/widget/cocoa/nsMacWebAppUtils.mm:49:34: error: implicit conversion of NULL constant to 'NSWorkspaceLaunchOptions' (aka 'unsigned long')
[-Werror,-Wnull-conversion]
options: nil
^~~
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:69:17: note: expanded from macro 'nil'
#define nil NULL
^~~~
1 error generated.
make[6]: *** [nsMacWebAppUtils.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [libs] Error 2
make[4]: *** [libs_tier_platform] Error 2
make[3]: *** [tier_platform] Error 2
make[2]: *** [default] Error 2
make[1]: *** [realbuild] Error 2
make: *** [build] Error 2
Replacing the nil with a 0 got me past this.
| Assignee | ||
Comment 2•13 years ago
|
||
The code that triggers this error has been in the tree for a while (since http://hg.mozilla.org/mozilla-central/rev/4cffe2b37d0c landed in July), and hasn't triggered an error before now. But maybe the build infrastructure is different for branches like alder and fx-team.
In any case this *is* a real error. Patch coming up shortly.
| Assignee | ||
Comment 3•13 years ago
|
||
Assignee: nobody → smichaud
Attachment #668092 -
Flags: review?(dwalkowski)
Comment 4•13 years ago
|
||
Comment on attachment 668092 [details] [diff] [review]
Fix
It's a bitfield, so yes, a zero is more correct than null.
And casting it to the correct flavor is helpful documentation.
Attachment #668092 -
Flags: review?(dwalkowski) → review+
Comment 5•13 years ago
|
||
Thanks Steven, Dan!
http://hg.mozilla.org/integration/mozilla-inbound/rev/2849c2156345
Status: NEW → ASSIGNED
Comment 6•13 years ago
|
||
I was getting this error on m-c, too. I have no idea why it suddenly showed up. Thanks for fixing it!
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•