Bug 1010706 - Fix uninitialized variable warnings in gfx/layers/opengl/CompositorOGL.cpp. r=mwoodrow
authorChris Peterson <cpeterson@mozilla.com>
Fri, 16 May 2014 00:35:13 -0700
changeset 183442 a3d9f7beef766381544c26dd07211c55dccd040b
parent 183441 74b573c947eba7115affb3b8483c9304ae64516e
child 183458 e898257a616601f21dbbec90827e769b78a89c1d
child 183486 c93eb56c4f06b032edd69485fc06d0303985f9a3
push idunknown
push userunknown
push dateunknown
reviewersmwoodrow
bugs1010706
milestone32.0a1
Bug 1010706 - Fix uninitialized variable warnings in gfx/layers/opengl/CompositorOGL.cpp. r=mwoodrow
gfx/layers/opengl/CompositorOGL.cpp
--- a/gfx/layers/opengl/CompositorOGL.cpp
+++ b/gfx/layers/opengl/CompositorOGL.cpp
@@ -915,17 +915,18 @@ static bool SetBlendMode(GLContext* aGL,
       break;
     case gfx::CompositionOp::OP_MULTIPLY:
       // If the source data was un-premultiplied we should have already
       // asked the fragment shader to fix that.
       srcBlend = LOCAL_GL_DST_COLOR;
       dstBlend = LOCAL_GL_ONE_MINUS_SRC_ALPHA;
       break;
     default:
-      MOZ_ASSERT(0, "Unsupported blend mode!");
+      MOZ_ASSERT_UNREACHABLE("Unsupported blend mode!");
+      return false;
   }
 
   aGL->fBlendFuncSeparate(srcBlend, dstBlend,
                           LOCAL_GL_ONE, LOCAL_GL_ONE);
   return true;
 }
 
 void