[osg-users] osgviewerCocoa build error with clang 7.0.0

Robert Osfield robert.osfield at gmail.com
Fri Nov 6 00:42:35 PST 2015


Hi Ravi,

Could you post the whole modified file to osg-submissions, I'll review this
and get it merged.

Robert.

On 6 November 2015 at 02:05, Ravi Mathur <ravidavi at utexas.edu> wrote:

> Hi all,
>
> The osgviewerCocoa example gives the following error during build:
>
>
> Code:
>
> ViewerCocoa.mm:176:9: error:
> cast from pointer to smaller type 'NSOpenGLPixelFormatAttribute'
> (aka 'unsigned int') loses information
> (NSOpenGLPixelFormatAttribute)nil
> ^~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
> 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).
>
> 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.
>
> Thanks!
> Ravi
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=65557#65557
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151106/95743535/attachment-0003.htm>


More information about the osg-users mailing list