Bug 729155: Fix warnings in plugin ipc code. r=bsmedberg

This commit is contained in:
Josh Aas 2012-02-21 19:32:06 -05:00
parent a07b388465
commit f0d674a852
4 changed files with 4 additions and 16 deletions

View File

@ -2542,13 +2542,13 @@ PluginInstanceChild::MaybeCreatePlatformHelperSurface(void)
return false;
}
#ifdef MOZ_X11
#ifdef MOZ_PLATFORM_MAEMO
// On maemo plugins support non-default visual rendering
bool supportNonDefaultVisual = true;
#else
bool supportNonDefaultVisual = false;
#endif
#ifdef MOZ_X11
Screen* screen = DefaultScreenOfDisplay(mWsInfo.display);
Visual* defaultVisual = DefaultVisualOfScreen(screen);
Visual* visual = nsnull;

View File

@ -129,20 +129,6 @@ PluginInstanceParent::Init()
return !!mScriptableObjects.Init();
}
namespace {
PLDHashOperator
ActorCollect(const void* aKey,
PluginScriptableObjectParent* aData,
void* aUserData)
{
nsTArray<PluginScriptableObjectParent*>* objects =
reinterpret_cast<nsTArray<PluginScriptableObjectParent*>*>(aUserData);
return objects->AppendElement(aData) ? PL_DHASH_NEXT : PL_DHASH_STOP;
}
} // anonymous namespace
void
PluginInstanceParent::ActorDestroy(ActorDestroyReason why)
{

View File

@ -114,6 +114,7 @@ MediateRace(const RPCChannel::Message& parent,
}
}
#if defined(OS_LINUX)
static string
ReplaceAll(const string& haystack, const string& needle, const string& with)
{
@ -127,6 +128,7 @@ ReplaceAll(const string& haystack, const string& needle, const string& with)
return munged;
}
#endif
string
MungePluginDsoPath(const string& path)

View File

@ -206,7 +206,7 @@ PluginModuleParent::TimeoutChanged(const char* aPref, void* aModule)
} else if (!strcmp(aPref, kParentTimeoutPref)) {
// The timeout value used by the child for its parent
PRInt32 timeoutSecs = Preferences::GetInt(kParentTimeoutPref, 0);
static_cast<PluginModuleParent*>(aModule)->SendSetParentHangTimeout(timeoutSecs);
unused << static_cast<PluginModuleParent*>(aModule)->SendSetParentHangTimeout(timeoutSecs);
}
return 0;
}