gcc 3.3.5 warnings

Problems building or running the engine, queries about how to use features etc.
Post Reply
sergey akifiev
Kobold
Posts: 34
Joined: Mon Feb 09, 2004 7:56 am
Contact:

gcc 3.3.5 warnings

Post by sergey akifiev »

i guess, this topic was discussed allready, but i can't find it with search facility.
when compiling ogre 1.0.0rc1 i've got this strange warnings:

Code: Select all

In file included from ../../../OgreMain/include/OgreEntity.h:37,
                 from ../../../OgreMain/include/Ogre.h:41,
                 from main.cpp:27:
../../../OgreMain/include/OgreSharedPtr.h: In member function `void 
   Ogre::SharedPtr<T>::destroy() [with T = Ogre::Mesh]':
../../../OgreMain/include/OgreSharedPtr.h:140:   instantiated from `void Ogre::SharedPtr<T>::release() [with T = Ogre::Mesh]'
../../../OgreMain/include/OgreSharedPtr.h:88:   instantiated from `Ogre::SharedPtr<T>::~SharedPtr() [with T = Ogre::Mesh]'
../../../OgreMain/include/OgreMesh.h:53:   instantiated from here
../../../OgreMain/include/OgreSharedPtr.h:149: warning: possible problem 
   detected in invocation of delete operator:
../../../OgreMain/include/OgreSharedPtr.h:149: warning: invalid use of 
   undefined type `struct Ogre::Mesh'
../../../OgreMain/include/OgrePrerequisites.h:260: warning: forward declaration 
   of `struct Ogre::Mesh'
../../../OgreMain/include/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.
[/quote]

and similar i get, when building my simple proggie (despite errors, concerning outdated ExampleFrameListener.h and ExampleApplication.h. i forget to copy'em to ogre include dir :-) )
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8
Contact:

Post by haffax »

Hi sergey,
this is a known issue, but with no real problem behind. All other compilers don't complain about the SharedPtr. Mental is looking for a way to prevent this warning (other than turning it of ;) )
team-pantheon programmer
creators of Rastullahs Lockenpracht
sergey akifiev
Kobold
Posts: 34
Joined: Mon Feb 09, 2004 7:56 am
Contact:

Post by sergey akifiev »

thanks for clearing this out.
the only trouble with it - XEmacs counts this warnings for errors, when i walking through 'em with (next-error) :-)
Post Reply