aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: new warning in amuled.cpp after #include removal  (Read 2328 times)

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
new warning in amuled.cpp after #include removal
« on: June 20, 2006, 05:00:46 PM »

Not an error, but a warning which concerns me a little bit:
Code: [Select]
amuled.cpp: In member function ‘virtual int CamuleDaemonApp::OnExit()’:
amuled.cpp:484: warning: possible problem detected in invocation of delete operator:
amuled.cpp:484: warning: invalid use of undefined type ‘struct CListenSocket’
amule.h:49: warning: forward declaration of ‘struct CListenSocket’
amuled.cpp:484: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
amuled.cpp:487: warning: possible problem detected in invocation of delete operator:
amuled.cpp:487: warning: invalid use of undefined type ‘struct CClientUDPSocket’
amule.h:55: warning: forward declaration of ‘struct CClientUDPSocket’
amuled.cpp:487: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
The GCC version is 4.1.0.

Re-adding

#include "ClientUDPSocket.h"
#include "ListenSocket.h

to amuled.cpp makes the warning disappear again.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: new warning in amuled.cpp after #include removal
« Reply #1 on: June 20, 2006, 09:01:40 PM »

Yeah, that one is important.
Logged