Fixed warnings in Bullet/src core library

Thanks Martijn Reuvers from Two Tribes B.V. (www.twotribes.com) for the patch

To make this work more visible, suppress warnings in external libraries in Extras (COLLADA_DOM, libxml and glui contain many warnings)
Added PreprocessorDefinitions: _CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE to vcproj files
This commit is contained in:
erwin.coumans
2008-05-10 18:00:21 +00:00
parent 739d09a7af
commit bd97c5e569
285 changed files with 11554 additions and 11205 deletions

View File

@@ -15,6 +15,10 @@
#define __DAE_DOM__
class daeMetaElement;
#pragma warning(disable : 4324) // disable padding warning
#pragma warning(disable:4530) // Disable the exception disable but used in MSCV Stl warning.
#pragma warning(disable:4996) //Turn off warnings about deprecated C routines
#pragma warning(disable:4786) // Disable the "debug name too long" warning
daeMetaElement* initializeDomMeta();

View File

@@ -15,6 +15,11 @@
#define __DAE_TYPES_H__
#ifdef WIN32
#pragma warning(disable : 4324) // disable padding warning
#pragma warning(disable:4530) // Disable the exception disable but used in MSCV Stl warning.
#pragma warning(disable:4996) //Turn off warnings about deprecated C routines
#pragma warning(disable:4786) // Disable the "debug name too long" warning
#include <dae/daeWin32Platform.h>
#elif defined( __GCC__ )
#include <dae/daeGCCPlatform.h>

View File

@@ -29,6 +29,7 @@
typedef int intptr_t;
#endif
#ifdef DOM_DYNAMIC
#ifdef DOM_EXPORT

View File

@@ -16,10 +16,11 @@
// because I'm not sure if all the plugin handling stuff has been tested. Once I get a working
// plugin I'll look into renaming it so the old daeLIBXMLPlugin can coexist with it.
//
#include <dae/daeMetaElement.h>
#include <modules/daeLIBXMLPlugin.h>
#include <dae.h>
#include <dom.h>
#include <dae/daeMetaElement.h>
#include <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include <libxml/xmlmemory.h>

View File

@@ -11,8 +11,8 @@
* License.
*/
#include <modules/daeSTLDatabase.h>
#include <dae/daeMetaElement.h>
#include <modules/daeSTLDatabase.h>
daeSTLDatabase::daeSTLDatabase()
{}

View File

@@ -1,9 +1,10 @@
#include "float_math.h"
#include "ConvexBuilder.h"
#include "meshvolume.h"
#include "bestfit.h"
#include <assert.h>
#include "cd_hull.h"
#include "float_math.h"
#include <algorithm>
#include "fitsphere.h"
#include "bestfitobb.h"

View File

@@ -1,3 +1,5 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -1,3 +1,4 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -1,3 +1,5 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -1,3 +1,5 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -37,6 +37,7 @@
//
// http://www.amillionpixels.us
//
#include "float_math.h"
#include "cd_wavefront.h"

View File

@@ -1,3 +1,4 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -1,10 +1,11 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "float_math.h"
/*----------------------------------------------------------------------
Copyright (c) 2004 Open Dynamics Framework Group

View File

@@ -2,6 +2,15 @@
#define FLOAT_MATH_H
#ifdef WIN32
#pragma warning(disable : 4324) // disable padding warning
#pragma warning(disable : 4244) // disable padding warning
#pragma warning(disable : 4267) // possible loss of data
#pragma warning(disable:4530) // Disable the exception disable but used in MSCV Stl warning.
#pragma warning(disable:4996) //Turn off warnings about deprecated C routines
#pragma warning(disable:4786) // Disable the "debug name too long" warning
#endif
/*----------------------------------------------------------------------
Copyright (c) 2004 Open Dynamics Framework Group
www.physicstools.org

View File

@@ -1,3 +1,4 @@
#include "float_math.h"
#include "meshvolume.h"
/*----------------------------------------------------------------------

View File

@@ -1,3 +1,4 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -1,3 +1,4 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -1,3 +1,4 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -1,3 +1,4 @@
#include "float_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -22,6 +22,24 @@
#include "config-mac.h"
#else
#ifdef _MSC_VER
#pragma warning(disable : 4324) // disable padding warning
#pragma warning(disable:4530) // Disable the exception disable but used in MSCV Stl warning.
#pragma warning(disable:4996) //Turn off warnings about deprecated C routines
#pragma warning(disable:4786) // Disable the "debug name too long" warning
#pragma warning (disable:4244) // possible loss of data
#pragma warning (disable:4267) // possible loss of data
#pragma warning (disable:4311) // type cast' : pointer truncation
#pragma warning (disable:4312) // type cast' : pointer truncation
#pragma warning (disable:4005) // macro redefinition
#pragma warning (disable:4101) // unreferenced local variable
#include "config-win32.h"
#else
#include "config.h"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -32,6 +32,13 @@
#ifndef GLUI_GLUI_H
#define GLUI_GLUI_H
#ifdef WIN32
#pragma warning(disable : 4324) // disable padding warning
#pragma warning(disable:4530) // Disable the exception disable but used in MSCV Stl warning.
#pragma warning(disable:4996) //Turn off warnings about deprecated C routines
#pragma warning(disable:4786) // Disable the "debug name too long" warning
#endif
#if defined(GLUI_FREEGLUT)
// FreeGLUT does not yet work perfectly with GLUI

View File

@@ -54,7 +54,7 @@ GLUI_FileBrowser::GLUI_FileBrowser( GLUI_Node *parent,
/****************************** GLUI_FileBrowser::draw() **********/
void GLUI_FileBrowser::dir_list_callback(GLUI_Control *glui_object) {
GLUI_List *list = dynamic_cast<GLUI_List*>(glui_object);
GLUI_List *list = glui_object->dynamicCastGLUI_List();
if (!list)
return;
GLUI_FileBrowser* me = list->associated_object->dynamicCastGLUI_FileBrowser();

View File

@@ -4,6 +4,8 @@
#include <cstdio>
#include <cmath>
#ifndef AND
#define AND &&
#define OR ||

View File

@@ -16,6 +16,8 @@
*****************************************************************************/
#include "glui_internal_control.h"
#include <cmath>
#include <sys/timeb.h>

View File

@@ -30,7 +30,7 @@
Oct 2003, Nigel Stewart - GLUI Code Cleaning
************************************************************************/
#include "glui_internal_control.h"
#include "quaternion.h"
#include <cmath>
#include "glui_internal.h"