two wrong asserts cause mutella compile with gcc 3.3 on
SuSE 8.2 to fail:
--- mutella/gnushare.cpp.orig 2002-11-18
18:04:17.000000000 +0100
+++ mutella/gnushare.cpp 2003-05-23
13:18:41.000000000 +0200
@@ -217,7 +217,7 @@
void MGnuShare::ResetDirectories(DWORD &EventCount,
LPHANDLE EventList)
{
// Close wait events on all directories
- assert(0);
+ ASSERT(0);
/*for(int i = 1; i < EventCount; i++)
FindCloseChangeNotification( EventList[i]);
--- mutella/gnudownload.cpp.orig 2003-05-23
13:32:19.000000000 +0200
+++ mutella/gnudownload.cpp 2003-05-23
13:32:58.000000000 +0200
@@ -1900,7 +1900,7 @@
{
MLock lock(m_mutex);
#warning
MGnuDownload::OnSegmentCompleted(MDownloader*
pDownloader, bool bSuccess) is not implemented
- assert(0);
+ ASSERT(0);
// Downloader should stop here
// shell we give it a new task?
}
Logged In: NO
The asserts are fine, it's a header inclusion that is missing.
The correct fix can be found in patch ID 1181681 (``Use of
assert() requires assert.h/cassert'')