[osg-users] Error in Image.cpp

David Callu ledocc at gmail.com
Fri Sep 7 14:29:12 PDT 2007


-W -Wall is the default flags with the old build system and disappear with
the CMake build system

Involuntary or not, I don't know. But with the OSG_USE_AGGRESSIVE_WARNINGS
available,
I never submit patch to fix this lack.

Robert, Luigi , what do you think about this ?

David

2007/9/7, Art Tevs <stud_info2 at yahoo.de>:
>
> Aha, I see , thanks.
>
> Is there a reason why do not to use the -Wall flag for the osg compilation
> per default?
>
> Art
>
> *David Callu <ledocc at gmail.com>* schrieb:
>
> oups sorry
>
>    Default flags with gcc have not -W or -Wall or other warning flag
>    You can enable it with set ON the OSG_USE_AGGRESSIVE_WARNINGS cmake
> variable
>    or add -W -Wall in the CMAKE_CXX_FLAGS cmake variable
>
> Cheers
> Davi Callu
>
> 2007/9/7, David Callu <ledocc at gmail.com>:
> >
> > Hi Art
> >
> >   Default flags with gcc h
> >
> > 2007/9/7, Jean-Sébastien Guay < jean-sebastien.guay at polymtl.ca>:
> > >
> > > Hello Art,
> > >
> > > >> I suspect the else should be
> > > >>
> > > >>          binding2DArray = GL_FALSE;
> > > >
> > > > it should be binding2DArray = GL_FALSE;
> > > >
> > > > Hmm, strange why does compiler do not see that this is
> > > > a non-sense instruction...
> > > > Are the -Wall Flags activated, Robert?
> > >
> > > On my side (Visual C++ 2005) I only get a warning:
> > >
> > > 2>..\..\..\src\osg\Image.cpp(541) : warning C4552: '-' : operator has
> > > no effect; expected operator with side-effect
> > >
> > > g++ would probably give something similar, which has perhaps not been
> > > spotted when compiling such a large number of files...
> > >
> > > J-S
> > > --
> > > ______________________________________________________
> > > Jean-Sebastien Guay     jean-sebastien.guay at polymtl.ca
> > >                          http://whitestar02.webhop.org/
> > >
> > > ----------------------------------------------------------------
> > > This message was sent using IMP, the Internet Messaging Program.
> > >
> > >
> > > _______________________________________________
> > > osg-users mailing list
> > > osg-users at lists.openscenegraph.org
> > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > >
> > >
> >
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
> ------------------------------
> Yahoo! Clever<http://de.rd.yahoo.com/evt=48210/*http://de.answers.yahoo.com/;_ylc=X3oDMTEyYTEwYzVhBF9TAzIxMTQ3MTgxOTAEc2VjA21haWwEc2xrA3RhZ2xpbmU->- Sie haben Fragen? Yahoo! Nutzer antworten Ihnen.
>
>
> _______________________________________________
> 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/20070907/68a56116/attachment-0003.htm>


More information about the osg-users mailing list