[osg-users] [build] x86_64, cmd line, built OK - but warning in Xcode

Hartwig Wiesmann hartwig.wiesmann at skywind.eu
Thu Dec 29 13:36:11 PST 2016


Hi,

I know that these compiler warnings are not critical but I find them still annoying and I think it is also not a good programming style to use the "wrong" integer type.

I also know that a simple modification might break some code (especially for virtual methods). But wouldn't it be in general a good idea to replace the mostly "unsigned int" types with size_t? Especially in constructors where very often a size is passed size_t can be used without problems (all STL size() methods return size_t types as a default type).

Cheers,
Hartwig

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69802#69802








More information about the osg-users mailing list