Clean up about a bazillion compilation warnings.
This commit is contained in:
@@ -49,4 +49,5 @@ public:
|
||||
|
||||
};
|
||||
|
||||
#endif //BOX_BOX__COLLISION_ALGORITHM_H
|
||||
#endif //BOX_BOX__COLLISION_ALGORITHM_H
|
||||
|
||||
|
||||
@@ -406,11 +406,11 @@ daeBool
|
||||
{
|
||||
strcpy( dst, "NaN" );
|
||||
}
|
||||
else if ( *(daeInt*)src == 0x7f800000 ) //+INF
|
||||
else if ( *(daeUInt*)src == 0x7f800000 ) //+INF
|
||||
{
|
||||
strcpy( dst, "INF" );
|
||||
}
|
||||
else if ( *(daeInt*)src == 0xff800000 ) //-INF
|
||||
else if ( *(daeUInt*)src == 0xff800000 ) //-INF
|
||||
{
|
||||
strcpy( dst, "-INF" );
|
||||
}
|
||||
@@ -451,11 +451,11 @@ daeBool
|
||||
{
|
||||
strcpy( dst, "NaN" );
|
||||
}
|
||||
else if ( *(daeLong*)src == 0x7ff0000000000000LL ) //+INF
|
||||
else if ( *(daeULong*)src == 0x7ff0000000000000LL ) //+INF
|
||||
{
|
||||
strcpy( dst, "INF" );
|
||||
}
|
||||
else if ( *(daeLong*)src == 0xfff0000000000000LL ) //-INF
|
||||
else if ( *(daeULong*)src == 0xfff0000000000000LL ) //-INF
|
||||
{
|
||||
strcpy( dst, "-INF" );
|
||||
}
|
||||
@@ -666,7 +666,7 @@ daeResolverType::stringToMemory(daeChar* src, daeChar* dstMemory)
|
||||
} else if (*s == ' ') {
|
||||
char err[512];
|
||||
memset( err, 0, 512 );
|
||||
sprintf(err,"uri contains white space, dom will convert them to %20 in output files!\n uri=%s", src);
|
||||
sprintf(err,"uri contains white space, dom will convert them to %%20 in output files!\n uri=%s", src);
|
||||
daeErrorHandler::get()->handleWarning( err );
|
||||
}
|
||||
*t=*s;
|
||||
|
||||
@@ -250,7 +250,7 @@ daeDefaultIDRefResolver::resolveElement(daeIDRef& idref, daeString typeNameHint)
|
||||
if ( idref.getContainer() == NULL )
|
||||
{
|
||||
char msg[128];
|
||||
sprintf(msg,"daeDefaultIDRefResolver::resolveElement() - failed to resolve %s\n",idref.getID(), ". IDRef needs a container element!" );
|
||||
sprintf(msg,"daeDefaultIDRefResolver::resolveElement() - failed to resolve %s%s\n",idref.getID(), ". IDRef needs a container element!" );
|
||||
daeErrorHandler::get()->handleWarning( msg );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,22 +1,23 @@
|
||||
SubDir TOP Extras GPUphysics ;
|
||||
|
||||
if $(GLUT.AVAILABLE) = "yes"
|
||||
{
|
||||
# All demo apps have a lot in common, so use this rule to simply things
|
||||
rule GPUDemo
|
||||
{
|
||||
Application $(<) : $(>) : noinstall console nomanifest ;
|
||||
# LinkWith $(<) : GLUT ;
|
||||
CFlags $(<) :
|
||||
[ FIncludes $(TOP)/Demos/OpenGL ]
|
||||
;
|
||||
MsvcIncDirs $(<) :
|
||||
"../../Demos/OpenGL"
|
||||
;
|
||||
if $(GLUT.AVAILABLE) = "yes"
|
||||
{
|
||||
# All demo apps have a lot in common, so use this rule to simply things
|
||||
rule GPUDemo
|
||||
{
|
||||
Application $(<) : $(>) : noinstall console nomanifest ;
|
||||
# LinkWith $(<) : GLUT ;
|
||||
CFlags $(<) :
|
||||
[ FIncludes $(TOP)/Demos/OpenGL ]
|
||||
;
|
||||
MsvcIncDirs $(<) :
|
||||
"../../Demos/OpenGL"
|
||||
;
|
||||
|
||||
ExternalLibs GPUphysics : GLUT GLEW ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GPUDemo GPUphysics : [ Wildcard *.h *.cpp ] ;
|
||||
|
||||
|
||||
@@ -11,4 +11,4 @@ SubInclude TOP Extras GIMPACT ;
|
||||
SubInclude TOP Extras GIMPACTBullet ;
|
||||
|
||||
#GPUphysics needs 'make', not jam compatible build yet:
|
||||
SubInclude TOP Extras GPUphysics ;
|
||||
#SubInclude TOP Extras GPUphysics ;
|
||||
|
||||
@@ -44,4 +44,5 @@ struct OdeSolverBody
|
||||
};
|
||||
|
||||
|
||||
#endif //#ifndef ODE_SOLVER_BODY_H
|
||||
#endif //#ifndef ODE_SOLVER_BODY_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user