mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1496758 - Fix few compilation warnings in ipc code. r=handyman,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D7918 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
7be9458f5f
commit
aace4e2e6a
@ -3514,7 +3514,6 @@ PluginInstanceChild::PaintRectWithAlphaExtraction(const nsIntRect& aRect,
|
||||
RefPtr<gfxImageSurface> blackImage;
|
||||
gfxRect targetRect(rect.x, rect.y, rect.width, rect.height);
|
||||
IntSize targetSize(rect.width, rect.height);
|
||||
gfxPoint deviceOffset = -targetRect.TopLeft();
|
||||
|
||||
// We always use a temporary "white image"
|
||||
whiteImage = new gfxImageSurface(targetSize, SurfaceFormat::X8R8G8B8_UINT32);
|
||||
@ -3549,6 +3548,7 @@ PluginInstanceChild::PaintRectWithAlphaExtraction(const nsIntRect& aRect,
|
||||
blackImage = image->GetSubimage(targetRect);
|
||||
|
||||
#else
|
||||
gfxPoint deviceOffset = -targetRect.TopLeft();
|
||||
// Paint onto white background
|
||||
whiteImage->SetDeviceOffset(deviceOffset);
|
||||
PaintRectToSurface(rect, whiteImage, Color(1.f, 1.f, 1.f));
|
||||
|
@ -124,7 +124,6 @@ PluginInstanceParent::PluginInstanceParent(PluginModuleParent* parent,
|
||||
, mChildPluginHWND(nullptr)
|
||||
, mChildPluginsParentHWND(nullptr)
|
||||
, mPluginWndProc(nullptr)
|
||||
, mNestedEventState(false)
|
||||
#endif // defined(XP_WIN)
|
||||
#if defined(XP_MACOSX)
|
||||
, mShWidth(0)
|
||||
|
@ -402,7 +402,6 @@ private:
|
||||
HWND mChildPluginHWND;
|
||||
HWND mChildPluginsParentHWND;
|
||||
WNDPROC mPluginWndProc;
|
||||
bool mNestedEventState;
|
||||
#endif // defined(XP_WIN)
|
||||
#if defined(MOZ_WIDGET_COCOA)
|
||||
private:
|
||||
|
@ -495,7 +495,7 @@ PluginModuleChromeParent::LoadModule(const char* aFilePath, uint32_t aPluginId,
|
||||
parent->mBrokerParent =
|
||||
FunctionBrokerParent::Create(std::move(brokerParentEnd));
|
||||
if (parent->mBrokerParent) {
|
||||
parent->SendInitPluginFunctionBroker(std::move(brokerChildEnd));
|
||||
Unused << parent->SendInitPluginFunctionBroker(std::move(brokerChildEnd));
|
||||
}
|
||||
#endif
|
||||
return parent.forget();
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "mozilla/ThreadLocal.h"
|
||||
#include "MainThreadUtils.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "nsDirectoryServiceDefs.h"
|
||||
#include "nsDirectoryServiceUtils.h"
|
||||
#include "nsExceptionHandler.h"
|
||||
@ -277,6 +277,7 @@ Interceptor::Interceptor(IInterceptorSink* aSink)
|
||||
{
|
||||
static const bool kHasTls = tlsCreatingStdMarshal.init();
|
||||
MOZ_ASSERT(kHasTls);
|
||||
Unused << kHasTls;
|
||||
|
||||
MOZ_ASSERT(aSink);
|
||||
RefPtr<IWeakReference> weakRef;
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "mozilla/mscom/Utils.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/ThreadLocal.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsProxyRelease.h"
|
||||
|
||||
@ -166,6 +167,7 @@ public:
|
||||
MOZ_ASSERT(sIsInit);
|
||||
MOZ_ASSERT(!tlsFrame.get());
|
||||
tlsFrame.set(this);
|
||||
Unused << sIsInit;
|
||||
}
|
||||
|
||||
~SavedCallFrame()
|
||||
|
@ -11,10 +11,10 @@
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/BackgroundHangMonitor.h"
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/mscom/SpinEvent.h"
|
||||
#include "mozilla/RefPtr.h"
|
||||
#include "mozilla/SystemGroup.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "private/prpriv.h" // For PR_GetThreadID
|
||||
#include <winternl.h> // For NTSTATUS and NTAPI
|
||||
|
||||
@ -38,6 +38,7 @@ public:
|
||||
{
|
||||
static const bool gotStatics = InitStatics();
|
||||
MOZ_ASSERT(gotStatics);
|
||||
Unused << gotStatics;
|
||||
}
|
||||
|
||||
~SyncRunnable() = default;
|
||||
@ -131,6 +132,7 @@ MainThreadInvoker::MainThreadInvoker()
|
||||
{
|
||||
static const bool gotStatics = InitStatics();
|
||||
MOZ_ASSERT(gotStatics);
|
||||
Unused << gotStatics;
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -296,7 +296,7 @@ ProxyStream::ProxyStream(REFIID aIID, IUnknown* aObject, Environment* aEnv,
|
||||
|
||||
nsAutoString manifestPath;
|
||||
|
||||
auto marshalFn = [this, &aIID, aObject, mshlFlags, &stream, &streamSize,
|
||||
auto marshalFn = [&aIID, aObject, mshlFlags, &stream, &streamSize,
|
||||
&hglobal, &createStreamResult, &marshalResult, &statResult,
|
||||
&getHGlobalResult, aEnv, &manifestPath]() -> void
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user