Fix build warnings about the "defined but not used" functions PumpEvents() & QuitPumpingEvents(), in netwerk test code. (Bug 529350) r=biesi

This commit is contained in:
Daniel Holbert 2009-11-17 13:18:05 -08:00
parent eefe027f32
commit bffabf5190
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ public:
};
NS_IMPL_THREADSAFE_ISUPPORTS1(nsQuitPumpingEvent, nsIRunnable)
static void PumpEvents()
static inline void PumpEvents()
{
nsCOMPtr<nsIThread> thread = do_GetCurrentThread();
@ -70,7 +70,7 @@ static void PumpEvents()
NS_ProcessPendingEvents(thread);
}
static void QuitPumpingEvents()
static inline void QuitPumpingEvents()
{
// Dispatch a task that toggles gKeepPumpingEvents so that we flush all
// of the pending tasks before exiting from PumpEvents.

View File

@ -113,7 +113,7 @@ main(int argc, char **argv)
printf("assuming -std\n");
}
if (urlParser) {
printf("have urlParser @%p\n", urlParser.get());
printf("have urlParser @%p\n", static_cast<void*>(urlParser.get()));
char *spec = argv[1];
PRUint32 schemePos, authPos, pathPos;