Bug 1404035 Address an unused result warning in gfx/thebes/DeviceManagerDx.cpp draft
authorTom Ritter <tom@mozilla.com>
Thu, 28 Sep 2017 12:53:24 -0500
changeset 677753 035475c42d6c3ae841e4cb1d2ed37e2a9570adee
parent 677752 2cfe53625b720f1e5302a41d1fc8af3c87976152
child 677754 73fdc19b45771e2f778b8187dc22ce88368fb087
push id83797
push userbmo:tom@mozilla.com
push dateTue, 10 Oct 2017 18:10:48 +0000
bugs1404035
milestone58.0a1
Bug 1404035 Address an unused result warning in gfx/thebes/DeviceManagerDx.cpp There's no way to handle this failure, so pass it to Unused. MozReview-Commit-ID: 37PS9TsPqx7
gfx/thebes/DeviceManagerDx.cpp
--- a/gfx/thebes/DeviceManagerDx.cpp
+++ b/gfx/thebes/DeviceManagerDx.cpp
@@ -684,17 +684,17 @@ DisableAdvancedLayers(FeatureStatus aSta
   if (!al.IsEnabled()) {
     return;
   }
 
   al.SetFailed(aStatus, aMessage.get(), aFailureId);
 
   FeatureFailure info(aStatus, aMessage, aFailureId);
   if (GPUParent* gpu = GPUParent::GetSingleton()) {
-    gpu->SendUpdateFeature(Feature::ADVANCED_LAYERS, info);
+    Unused << gpu->SendUpdateFeature(Feature::ADVANCED_LAYERS, info);
   }
 
   if (aFailureId.Length()) {
     nsString failureId = NS_ConvertUTF8toUTF16(aFailureId.get());
     Telemetry::ScalarAdd(Telemetry::ScalarID::GFX_ADVANCED_LAYERS_FAILURE_ID, failureId, 1);
   }
 
   // Notify TelemetryEnvironment.jsm.