mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
Bug 1217726 - Fix -Wimplicit-fallthrough warnings in dom/plugins. r=jimm
dom/plugins/base/nsNPAPIPlugin.cpp:1974:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/plugins/base/nsNPAPIPlugin.cpp:2200:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/plugins/ipc/PluginInstanceChild.cpp:507:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
This commit is contained in:
parent
fe4db105c1
commit
012798f903
2 changed files with 4 additions and 11 deletions
|
|
@ -693,7 +693,6 @@ AsyncCallbackAutoLock::~AsyncCallbackAutoLock()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
NPP NPPStack::sCurrentNPP = nullptr;
|
||||
|
||||
const char *
|
||||
|
|
@ -744,7 +743,6 @@ _geturl(NPP npp, const char* relativeURL, const char* target)
|
|||
(strncmp(relativeURL, "ftp:", 4) != 0)) {
|
||||
nsNPAPIPluginInstance *inst = (nsNPAPIPluginInstance *) npp->ndata;
|
||||
|
||||
|
||||
const char *name = nullptr;
|
||||
RefPtr<nsPluginHost> host = nsPluginHost::GetInst();
|
||||
host->GetPluginName(inst, &name);
|
||||
|
|
@ -1958,10 +1956,8 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
|
|||
return NPERR_NO_ERROR;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return NPERR_GENERIC_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef NP_NO_QUICKDRAW
|
||||
case NPNVsupportsQuickDrawBool: {
|
||||
|
|
@ -2189,14 +2185,13 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
|
|||
|
||||
// we no longer hand out any XPCOM objects
|
||||
case NPNVDOMElement:
|
||||
// fall through
|
||||
case NPNVDOMWindow:
|
||||
// fall through
|
||||
case NPNVserviceManager:
|
||||
// old XPCOM objects, no longer supported, but null out the out
|
||||
// param to avoid crashing plugins that still try to use this.
|
||||
*(nsISupports**)result = nullptr;
|
||||
// fall through
|
||||
MOZ_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
NPN_PLUGIN_LOG(PLUGIN_LOG_NORMAL, ("NPN_getvalue unhandled get value: %d\n", variable));
|
||||
return NPERR_GENERIC_ERROR;
|
||||
|
|
|
|||
|
|
@ -502,6 +502,7 @@ PluginInstanceChild::NPN_GetValue(NPNVariable aVar,
|
|||
case NPNVSupportsXEmbedBool:
|
||||
case NPNVSupportsWindowless:
|
||||
NS_NOTREACHED("NPNVariable should be handled in PluginModuleChild.");
|
||||
MOZ_FALLTHROUGH;
|
||||
#endif
|
||||
|
||||
default:
|
||||
|
|
@ -510,7 +511,6 @@ PluginInstanceChild::NPN_GetValue(NPNVariable aVar,
|
|||
(int) aVar, NPNVariableToString(aVar)));
|
||||
return NPERR_GENERIC_ERROR;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#ifdef MOZ_WIDGET_COCOA
|
||||
|
|
@ -2313,7 +2313,6 @@ PluginInstanceChild::EnumThreadWindowsCallback(HWND hWnd,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PluginInstanceChild::SetupFlashMsgThrottle()
|
||||
{
|
||||
|
|
@ -2610,7 +2609,6 @@ StreamNotifyChild::ActorDestroy(ActorDestroyReason why)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
StreamNotifyChild::SetAssociatedStream(BrowserStreamChild* bs)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue