<div dir="ltr"><div><div>Hi Ravi,<br><br></div>Could you post the whole modified file to osg-submissions, I'll review this and get it merged.<br><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 November 2015 at 02:05, Ravi Mathur <span dir="ltr"><<a href="mailto:ravidavi@utexas.edu" target="_blank">ravidavi@utexas.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
The osgviewerCocoa example gives the following error during build:<br>
<br>
<br>
Code:<br>
<br>
ViewerCocoa.mm:176:9: error:<br>
cast from pointer to smaller type 'NSOpenGLPixelFormatAttribute'<br>
(aka 'unsigned int') loses information<br>
(NSOpenGLPixelFormatAttribute)nil<br>
^~~~~~~~~~~~~~~~~~~~~~<br>
<br>
<br>
<br>
<br>
This occurs on the OpenSceneGraph-3.4 branch of the Git repo, using OSX 10.10.5 with the latest Command Line Tools (clang 7.0.0).<br>
<br>
According to Apple's NSOpenGLPixelFormat reference (can't post url since this is my first post), the last element of the NSOpenGLPixelFormatAttribute array should be 0 (zero), not (NSOpenGLPixelFormatAttribute)nil . The new clang is strict about this, so throws an error.<br>
<br>
Thanks!<br>
Ravi<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=65557#65557" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=65557#65557</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>