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.
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
Please respond to this post or put something in the developer's section when you do change this. It might break pyogre, since SharedPtr is a sensitive area for pyogre.
I'm inclined to think this is a false warning since it disappears on later gcc's and I can't for the life of me understand what it doesn't like (we've tried a number of workarounds that should have worked and none did).