Re: [osg-users] Eliminating VS warnings in external projects

2009-01-30 Thread Robert Osfield
Hi Paul,

Thanks for the warning output.  Analysis of the output shows there are
only 33 unique warnings, the Regisitry and ReaderWriter essentially
pull in many of the same core OSG headers that are causing the
warnings so both have pretty well the same overlap in warnings.

What is likely is that other OSG headers will be producing warnings
with /W3.  I guess one way to test this would be to include all OSG
headers into a single main.cpp, then compile this with /W3.  Ideally
I'd like the OSG 2.8 to go out with no warnings generated by the
headers themselves - this might mean suppressing some more warning if
this looks like a safer route in terms of code changes this close to a
release.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Eliminating VS warnings in external projects

2009-01-30 Thread Matthew Fuesz
Since I want to run at /W4 without warnings, I just push all OSG include 
directives back to /W2.

That is, when including any OSG headers, I surround the #include calls with 
#pragma warning ( push, 2 ) and #pragma warning ( pop )

I have to do similar things with other third-party libraries I must leverage in 
some of my projects.


Matthew W Fuesz
Software Engineer Asc
Lockheed Martin STS

--
Read this topic online here:
http://osgforum.tevs.eu/viewtopic.php?p=5525#5525





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Eliminating VS warnings in external projects

2009-01-29 Thread Paul Martz
Hi all -- I only caught bits and pieces of the discussion regarding changing
the way that warnings are handled in Visual Studio. I know they used to be
eliminated with #pragmas in the source code, and I assume they are now
eliminated with the /W option (when USE_AGGRESSIVE_WARNINGS is OFF).
 
I have about 30 or so projects that include OSG headers, and nearly all of
them are generating several hundred warnings when compiled with VS against
current OSG svn. They all compiled cleanly before this change.
 
When you folks were discussing this change, what decision did you make about
external projects? Were you thinking that all external projects should
stifle the warnings by using /W?
 
If anyone knows of a way to do this without manually modifying all of my ~30
projects, I would really appreciate it. I'm not looking forward to doing
this manually.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com http://www.skew-matrix.com/ 
+1 303 859 9466
 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Eliminating VS warnings in external projects

2009-01-29 Thread Robert Osfield
Hi Paul,

The intention is that the clean up of the #prgrama was to enable the
3rd party apps to make their own decisions about warnings - whether to
suppress them or to fix/work around them being down the project
choice.

There are still three pragma left in include/osg/Export.  When
USE_AGGRESSIVE_WARNINGS is ON a few more warnings are disabled using
build options, but none a suppressed when USE_AGGRESSIVE_WARNINGS is
OFF, beside the ones disabled by the pragmas.

I'm curious the warnings your see, are they from your own project
source code, or are they generated by the OSG headers directly? The
later shouldn't produce warnings given the clean up and remaining
pragamas.  At least that's the theory.

Robert.

On Thu, Jan 29, 2009 at 7:52 PM, Paul Martz pma...@skew-matrix.com wrote:
 Hi all -- I only caught bits and pieces of the discussion regarding changing
 the way that warnings are handled in Visual Studio. I know they used to be
 eliminated with #pragmas in the source code, and I assume they are now
 eliminated with the /W option (when USE_AGGRESSIVE_WARNINGS is OFF).

 I have about 30 or so projects that include OSG headers, and nearly all of
 them are generating several hundred warnings when compiled with VS against
 current OSG svn. They all compiled cleanly before this change.

 When you folks were discussing this change, what decision did you make about
 external projects? Were you thinking that all external projects should
 stifle the warnings by using /W?

 If anyone knows of a way to do this without manually modifying all of my ~30
 projects, I would really appreciate it. I'm not looking forward to doing
 this manually.

 Paul Martz
 Skew Matrix Software LLC
 http://www.skew-matrix.com
 +1 303 859 9466

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Eliminating VS warnings in external projects

2009-01-29 Thread Paul Martz
Thanks, Robert.

I've attached two source files, which, when compiled with VS, display the 70
warnings below.

In this case, the file doesn't actually need to #include osgDB/Registry,
and removing that #include eliminates _all_ warnings. While this was a good
catch, I have another source file that _does_ need to #include
osgDB/Registry, and it spews out an identical set of warnings. So, please
view the attached files and warnings below as an example of a real issue,
not resolvable by simply removing the #include.

Obviously, there's some benefit to me going through all my projects and
looking for such mistakes. I'm just looking for a quick way to avoid doing
that _right_now_ so that it doesn't impact my productivity regarding my
current projects and deadlines. Unfortunately there doesn't appear to be a
way to easily return to my previous zero warnings state, short of rolling
back OSG.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466


1-- Build started: Project: osgdb_PolyTrans, Configuration: Release
Win32 --
1Compiling...
1OptionLoader.cpp
1C:\Program Files\OpenSceneGraph\include\osg/Shape(612) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Shape(634) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(496) : warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(504) : warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(571) : warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(579) : warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(645) : warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(653) : warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/StateAttribute(259) : warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/Uniform(318) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Program(86) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/StateSet(92) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/State(137) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Node(147) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Node(282) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Group(100) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Group(142) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Image(276) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/OperationThread(111) : warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/Stats(41) : warning C4267:
'return' : conversion from 'size_t' to 'int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Stats(105) : warning C4267:
'return' : conversion from 'size_t' to 'int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/View(134) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Drawable(157) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Geometry(202) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Geometry(222) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Geometry(234) : warning C4267:
'return' : conversion 

Re: [osg-users] Eliminating VS warnings in external projects

2009-01-29 Thread Robert Osfield
Hi Paul,

Could you send me a file containing the warnings (console output from
the compiler is fine).  The the warning is generated by the OSG
headers then these need fixing or suppressed via include/osg/Export.

Robert.

On Thu, Jan 29, 2009 at 8:47 PM, Paul Martz pma...@skew-matrix.com wrote:
 Thanks, Robert.

 I've attached two source files, which, when compiled with VS, display the 70
 warnings below.

 In this case, the file doesn't actually need to #include osgDB/Registry,
 and removing that #include eliminates _all_ warnings. While this was a good
 catch, I have another source file that _does_ need to #include
 osgDB/Registry, and it spews out an identical set of warnings. So, please
 view the attached files and warnings below as an example of a real issue,
 not resolvable by simply removing the #include.

 Obviously, there's some benefit to me going through all my projects and
 looking for such mistakes. I'm just looking for a quick way to avoid doing
 that _right_now_ so that it doesn't impact my productivity regarding my
 current projects and deadlines. Unfortunately there doesn't appear to be a
 way to easily return to my previous zero warnings state, short of rolling
 back OSG.

 Paul Martz
 Skew Matrix Software LLC
 http://www.skew-matrix.com
 +1 303 859 9466


 1-- Build started: Project: osgdb_PolyTrans, Configuration: Release
 Win32 --
 1Compiling...
 1OptionLoader.cpp
 1C:\Program Files\OpenSceneGraph\include\osg/Shape(612) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Shape(634) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(496) : warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(504) : warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(571) : warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(579) : warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(645) : warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(653) : warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/StateAttribute(259) : warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Uniform(318) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Program(86) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/StateSet(92) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/State(137) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Node(147) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Node(282) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Group(100) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Group(142) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Image(276) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/OperationThread(111) : warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Stats(41) : warning C4267:
 'return' : conversion from 'size_t' to 'int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Stats(105) : warning C4267:
 'return' : conversion from 'size_t' to 'int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/View(134) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Drawable(157) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
 1C:\Program 

Re: [osg-users] Eliminating VS warnings in external projects

2009-01-29 Thread Paul Martz
That's with /W3, by the way, and setting this to /W2 removes the warnings.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paul Martz
Sent: Thursday, January 29, 2009 1:47 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] Eliminating VS warnings in external projects

Thanks, Robert.

I've attached two source files, which, when compiled with VS, display the 70
warnings below.

In this case, the file doesn't actually need to #include osgDB/Registry,
and removing that #include eliminates _all_ warnings. While this was a good
catch, I have another source file that _does_ need to #include
osgDB/Registry, and it spews out an identical set of warnings. So, please
view the attached files and warnings below as an example of a real issue,
not resolvable by simply removing the #include.

Obviously, there's some benefit to me going through all my projects and
looking for such mistakes. I'm just looking for a quick way to avoid doing
that _right_now_ so that it doesn't impact my productivity regarding my
current projects and deadlines. Unfortunately there doesn't appear to be a
way to easily return to my previous zero warnings state, short of rolling
back OSG.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466


1-- Build started: Project: osgdb_PolyTrans, Configuration: Release
Win32 --
1Compiling...
1OptionLoader.cpp
1C:\Program Files\OpenSceneGraph\include\osg/Shape(612) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Shape(634) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(496) : 
1warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(504) : 
1warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(571) : 
1warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(579) : 
1warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(645) : 
1warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(653) : 
1warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/StateAttribute(259) : 
1warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/Uniform(318) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Program(86) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/StateSet(92) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/State(137) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Node(147) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Node(282) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Group(100) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Group(142) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Image(276) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/OperationThread(111) : 
1warning
C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
of data
1C:\Program Files\OpenSceneGraph\include\osg/Stats(41) : warning C4267:
'return' : conversion from 'size_t' to 'int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Stats(105) : warning C4267:
'return' : conversion from 'size_t' to 'int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/View(134) : warning C4267:
'return' : conversion from 'size_t' to 'unsigned int', possible loss of data
1C:\Program Files\OpenSceneGraph\include\osg/Drawable(157) : warning C4267:
'return

Re: [osg-users] Eliminating VS warnings in external projects

2009-01-29 Thread Paul Martz
Note that including osgDB/ReaderWriter in an external project produces a
similar, but slightly smaller (52 warnings), output.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert
Osfield
Sent: Thursday, January 29, 2009 2:06 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Eliminating VS warnings in external projects

Hi Paul,

Could you send me a file containing the warnings (console output from the
compiler is fine).  The the warning is generated by the OSG headers then
these need fixing or suppressed via include/osg/Export.

Robert.

On Thu, Jan 29, 2009 at 8:47 PM, Paul Martz pma...@skew-matrix.com wrote:
 Thanks, Robert.

 I've attached two source files, which, when compiled with VS, display 
 the 70 warnings below.

 In this case, the file doesn't actually need to #include 
 osgDB/Registry, and removing that #include eliminates _all_ 
 warnings. While this was a good catch, I have another source file that 
 _does_ need to #include osgDB/Registry, and it spews out an 
 identical set of warnings. So, please view the attached files and 
 warnings below as an example of a real issue, not resolvable by simply
removing the #include.

 Obviously, there's some benefit to me going through all my projects 
 and looking for such mistakes. I'm just looking for a quick way to 
 avoid doing that _right_now_ so that it doesn't impact my productivity 
 regarding my current projects and deadlines. Unfortunately there 
 doesn't appear to be a way to easily return to my previous zero 
 warnings state, short of rolling back OSG.

 Paul Martz
 Skew Matrix Software LLC
 http://www.skew-matrix.com
 +1 303 859 9466


 1-- Build started: Project: osgdb_PolyTrans, Configuration: 
 1Release
 Win32 --
 1Compiling...
 1OptionLoader.cpp
 1C:\Program Files\OpenSceneGraph\include\osg/Shape(612) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Shape(634) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(496) : 
 1warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible 
 loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(504) : 
 1warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible 
 loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(571) : 
 1warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible 
 loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(579) : 
 1warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible 
 loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(645) : 
 1warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible 
 loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(653) : 
 1warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible 
 loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/StateAttribute(259) : 
 1warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible 
 loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Uniform(318) : warning
C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Program(86) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/StateSet(92) : warning
C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/State(137) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Node(147) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Node(282) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Group(100) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Group(142) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/Image(276) : warning C4267:
 'return' : conversion from 'size_t' to 'unsigned int', possible loss 
 of data
 1C:\Program Files\OpenSceneGraph\include\osg/OperationThread(111) : 
 1warning
 C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible 
 loss of data
 1C:\Program Files\OpenSceneGraph\include\osg/Stats