Crystal Space
Welcome, Guest. Please login or register.
November 26, 2014, 05:30:17 am

Login with username, password and session length
Search:     Advanced search
9026 Posts in 2046 Topics by 9130 Members
Latest Member: Eddiehunter
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  1710 CS build warnings
« previous next »
Pages: [1] Print
Author Topic: 1710 CS build warnings  (Read 2669 times)
Michaelwakka
Newbie
*
Posts: 2


View Profile Email
« on: March 30, 2008, 01:33:33 am »

When I built CS in MSVC the build succeeded, but I got 1710 warnings (50 of which are printed below) and I can't figure out why I 'm getting them. Also, the walktest demo seems to crash when I do certain things (such as colliding with certain objects like the shields on the table, maybe because they have dynamic motion?) but otherwise seems to work fine. I don't know if the two issues are related but I thought I'd mention it. Can anyone help out a noobie and take a stab at what is causing these warnings and whether they will affect anything for me when using CS? Thanks for your help.

Here are a few of the warnings, what could causing them?:

Warning   1   warning C4996: 'csRunnable::DecRef': csRunnable is deprecated. Use new subsystem in CS::Threading instead   c:\CS\include\csutil\ref.h   204   
Warning   2   warning C4996: 'csRunnable::IncRef': csRunnable is deprecated. Use new subsystem in CS::Threading instead   c:\CS\include\csutil\ref.h   254   
Warning   3   warning C4996: 'csRunnable::DecRef': csRunnable is deprecated. Use new subsystem in CS::Threading instead   c:\CS\include\csutil\ref.h   255   
Warning   4   warning C4996: 'iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\libs\cstool\collider.cpp   78   
Warning   5   warning C4996: 'iCollideSystem::CreateCollider': Use CreateCollider(iTriangleMesh*) instead.   c:\CS\libs\cstool\collider.cpp   83   
Warning   6   warning C4996: 'iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\libs\cstool\collider.cpp   88   
Warning   7   warning C4996: 'iCollideSystem::CreateCollider': Use CreateCollider(iTriangleMesh*) instead.   c:\CS\libs\cstool\collider.cpp   93   
Warning   8   warning C4996: 'iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\libs\cstool\collider.cpp   177   
Warning   9   warning C4996: 'iCollideSystem::CreateCollider': Use CreateCollider(iTriangleMesh*) instead.   c:\CS\libs\cstool\collider.cpp   179   
Warning   10   warning C4996: 'iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\libs\cstool\collider.cpp   217   
Warning   11   warning C4996: 'iObjectModel::GetPolygonMeshColldet': Use GetTriangleData() instead.   c:\CS\libs\cstool\collider.cpp   232   
Warning   12   warning C4996: 'iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\libs\cstool\collider.cpp   332   
Warning   13   warning C4996: 'iObjectModel::GetPolygonMeshColldet': Use GetTriangleData() instead.   c:\CS\libs\cstool\collider.cpp   332   
Warning   14   warning C4996: 'iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\libs\cstool\collider.cpp   725   
Warning   15   warning C4996: 'iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\libs\cstool\collider.cpp   734   
Warning   16   warning C4996: 'csPolygonMeshBox': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\libs\cstool\collider.cpp   734   
Warning   17   warning C4996: 'csPolygonMeshBox::csPolygonMeshBox': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\libs\cstool\collider.cpp   734   
Warning   18   warning C4996: 'iCollideSystem::CreateCollider': Use CreateCollider(iTriangleMesh*) instead.   c:\CS\libs\cstool\collider.cpp   735   
Warning   19   warning C4996: 'iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\libs\cstool\collider.cpp   742   
Warning   20   warning C4996: 'csPolygonMeshBox': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\libs\cstool\collider.cpp   742   
Warning   21   warning C4996: 'csPolygonMeshBox::csPolygonMeshBox': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\libs\cstool\collider.cpp   742   
Warning   22   warning C4996: 'iCollideSystem::CreateCollider': Use CreateCollider(iTriangleMesh*) instead.   c:\CS\libs\cstool\collider.cpp   743   
Warning   23   warning C4996: 'csPolygonMesh::~csPolygonMesh': csPolygonMesh is deprecated; use csTriangleMesh instead   c:\CS\include\csutil\scf_implementation.h   189   
Warning   24   warning C4996: 'csPolygonMeshBox::~csPolygonMeshBox': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   189   
Warning   25   warning C4996: 'iPolygonMesh::__vbaseDtor': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\include\csutil\array.h   284   
Warning   26   warning C4996: 'iPolygonMesh::~iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\include\csutil\array.h   284   
Warning   27   warning C4996: 'csPolygonMeshBox::GetVertexCount': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   28   warning C4996: 'csPolygonMeshBox::GetPolygons': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   29   warning C4996: 'csPolygonMeshBox::Lock': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   30   warning C4996: 'csPolygonMeshBox::GetChangeNumber': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   31   warning C4996: 'csPolygonMeshBox::GetPolygonCount': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   32   warning C4996: 'csPolygonMeshBox::GetTriangles': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   33   warning C4996: 'csPolygonMeshBox::GetFlags': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   34   warning C4996: 'csPolygonMeshBox::~csPolygonMeshBox': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   35   warning C4996: 'csPolygonMeshBox::~csPolygonMeshBox': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   36   warning C4996: 'csPolygonMesh::~csPolygonMesh': csPolygonMesh is deprecated; use csTriangleMesh instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   37   warning C4996: 'csPolygonMesh::~csPolygonMesh': csPolygonMesh is deprecated; use csTriangleMesh instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   38   warning C4996: 'csPolygonMeshBox::GetVertices': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   39   warning C4996: 'csPolygonMeshBox::GetTriangleCount': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   40   warning C4996: 'csPolygonMeshBox::Unlock': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   120   
Warning   41   warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data   c:\CS\libs\csgeom\trimeshtools.cpp   162   
Warning   42   warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data   c:\CS\libs\csgeom\trimeshtools.cpp   188   
Warning   43   warning C4996: 'csPolygonMesh::~csPolygonMesh': csPolygonMesh is deprecated; use csTriangleMesh instead   c:\CS\include\csutil\scf_implementation.h   189   
Warning   44   warning C4996: 'csPolygonMeshBox::~csPolygonMeshBox': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_implementation.h   189   
Warning   45   warning C4996: 'iPolygonMesh::__vbaseDtor': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\include\csutil\array.h   284   
Warning   46   warning C4996: 'iPolygonMesh::~iPolygonMesh': iPolygonMesh is deprecated; use iTriangleMesh instead   c:\CS\include\csutil\array.h   284   
Warning   47   warning C4996: 'csPolygonMeshBox::GetVertices': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_interface.h   405   
Warning   48   warning C4996: 'csPolygonMeshBox::GetVertexCount': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_interface.h   405   
Warning   49   warning C4996: 'csPolygonMeshBox::GetTriangleCount': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_interface.h   405   
Warning   50   warning C4996: 'csPolygonMeshBox::Unlock': csPolygonMeshBox is deprecated; use csTriangleMeshBox instead   c:\CS\include\csutil\scf_interface.h   405   
Logged
Njoc
Newbie
*
Posts: 27


View Profile Email
« Reply #1 on: April 01, 2008, 11:52:20 am »

All depecated warnings  maded by the developers.  Does'nt matter form your viewpoint.

What version did you download? Latest Svn, 1.2, or what?
Logged
Michaelwakka
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: April 02, 2008, 07:46:52 am »

I'm using the latest release. I'm not sure I understand what you mean could you explain a bit more?
Logged
Njoc
Newbie
*
Posts: 27


View Profile Email
« Reply #3 on: April 02, 2008, 12:29:31 pm »

Here is a piece of code from cssysdef.h

Code:
/**\def CS_DEPRECATED_METHOD
 * Use the CS_DEPRECATED_METHOD macro in front of method declarations to
 * indicate that they are deprecated. Example:
 * \code
 * struct iFoo : iBase {
 *   CS_DEPRECATED_METHOD virtual void Plankton() const = 0;
 * }
 * \endcode
 * Compilers which are capable of flagging deprecation will exhibit a warning
 * when it encounters client code invoking methods so tagged.
 */
#if !defined(CS_DEPRECATED_METHOD) || defined(DOXYGEN_RUN)
#  if defined(CS_COMPILER_MSVC)
#    define CS_DEPRECATED_METHOD __declspec(deprecated)
      /* Unfortunately, MSVC is overzealous with warnings; it even emits one
when a deprecated method is overridden, e.g. when implementing an
interface method.
To work around this, use msvc_deprecated_warn_off.h/
msvc_deprecated_warn_on.h. */
#  else
#    define CS_DEPRECATED_METHOD
#  endif
#endif


Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.504 seconds with 15 queries.