diff --git a/gfx/layers/opengl/CompositorOGL.cpp b/gfx/layers/opengl/CompositorOGL.cpp index 79d0c348d2ff..c9caf84fc02f 100644 --- a/gfx/layers/opengl/CompositorOGL.cpp +++ b/gfx/layers/opengl/CompositorOGL.cpp @@ -920,7 +920,8 @@ static bool SetBlendMode(GLContext* aGL, gfx::CompositionOp aBlendMode, bool aIs 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,