From 93b15391cd34cd1cec38522269ea4cd790f537af Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Mon, 8 Mar 2004 07:27:06 +0000 Subject: [PATCH] Bug 235271 nsTimelineService - Warning (Anachronism): Formal argument ... of type extern "C" in call to ...(..., extern "C"...) is being passed something else r=dbaron sr=dbaron git-svn-id: svn://10.0.0.236/trunk@153666 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/ds/nsTimelineService.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/ds/nsTimelineService.cpp b/mozilla/xpcom/ds/nsTimelineService.cpp index 09d4841d475..629a7d33a5e 100644 --- a/mozilla/xpcom/ds/nsTimelineService.cpp +++ b/mozilla/xpcom/ds/nsTimelineService.cpp @@ -235,7 +235,12 @@ done: return data; } -static void ThreadDestruct( void *data ) +extern "C" { + static void ThreadDestruct (void *data); + static PRStatus TimelineInit(void); +}; + +void ThreadDestruct( void *data ) { if (data) delete (TimelineThreadData *)data; @@ -246,7 +251,7 @@ static void ThreadDestruct( void *data ) */ static PRCallOnceType initonce; -static PRStatus TimelineInit(void) +PRStatus TimelineInit(void) { char *timeStr; char *fileName;