Warnings in any compile that uses Ogre
Posted: Mon Feb 14, 2005 6:49 pm
Hi, i'm getting a couple of warnings for every file that includes ogre.h. The warnings are these:
Am i doing something wrong, or is this normal? If more info is needed, tell me what to post and i'll post it.
BTW data/suspensionData.cpp:12: is just a #include "Ogre.h"
I'm using Ogre v1rc1. I had no warnings with Ogre v0.15.2
Code: Select all
In file included from /usr/include/OGRE/OgreEntity.h:37,
from /usr/include/OGRE/Ogre.h:41,
from data/suspensionData.cpp:12:
/usr/include/OGRE/OgreSharedPtr.h: In member function `void
Ogre::SharedPtr<T>::destroy() [with T = Ogre::Mesh]':
/usr/include/OGRE/OgreSharedPtr.h:140: instantiated from `void Ogre::SharedPtr<T>::release() [with T = Ogre::Mesh]'
/usr/include/OGRE/OgreSharedPtr.h:88: instantiated from `Ogre::SharedPtr<T>::~SharedPtr() [with T = Ogre::Mesh]'
/usr/include/OGRE/OgreMesh.h:53: instantiated from here
/usr/include/OGRE/OgreSharedPtr.h:149: warning: possible problem detected in
invocation of delete operator:
/usr/include/OGRE/OgreSharedPtr.h:149: warning: invalid use of undefined type `
struct Ogre::Mesh'
/usr/include/OGRE/OgrePrerequisites.h:260: warning: forward declaration of `
struct Ogre::Mesh'
/usr/include/OGRE/OgreSharedPtr.h:149: note: neither the destructor nor the
class-specific operator delete will be called, even if they are declared
when the class is defined.BTW data/suspensionData.cpp:12: is just a #include "Ogre.h"
I'm using Ogre v1rc1. I had no warnings with Ogre v0.15.2