[osg-users] Two warnings in osgWidgets (opps!)

Vican, Justin E. jvican at draper.com
Thu Jul 17 06:05:28 PDT 2008


Hi All,
I get the same warnings (64Bit Linux, RHEL 4, gcc3.4.6).
-Justin

-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Mario
Valle
Sent: Thursday, July 17, 2008 3:12 AM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] Two warnings in osgWidgets (opps!)


 From this morning SVN on AMD 64 bits:

/users/mvalle/OSG/OpenSceneGraph/src/osgWidget/Window.cpp: In member
function `void
osgWidget::Window::_removeFromGeode(osgWidget::Widget*)':
/users/mvalle/OSG/OpenSceneGraph/src/osgWidget/Window.cpp:413: warning:
converting of
negative value `-0x00000000000000001' to `unsigned int'
/users/mvalle/OSG/OpenSceneGraph/src/osgWidget/WindowManager.cpp: In
member function
`virtual void osgWidget::WindowManager::childRemoved(unsigned int,
unsigned int)':
/users/mvalle/OSG/OpenSceneGraph/src/osgWidget/WindowManager.cpp:275:
warning: converting
of negative value `-0x00000000000000001' to `unsigned int'


The quickest fix is to change the type of _index in
include/osgWidgets/Window line 406 and
include/osgWidget/Widget line 440 to int.

But from a quick look at the code I think setting _index to 0 instead of
-1 is safe in
those two places.

Could you look at this?
Ciao!
		mario

-- 
Ing. Mario Valle
Data Analysis and Visualization Services         |
http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91)
610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91)
610.82.82

_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g



More information about the osg-users mailing list