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
--- 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.