[Mesa-dev] [PATCH 04.5/13] mesa: replace _mesa_problem() with unreachable()

Timothy Arceri tarceri at itsqueeze.com
Tue May 9 02:17:10 UTC 2017


---
 src/mesa/main/accum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c
index d81e1ba..c0a3e7e 100644
--- a/src/mesa/main/accum.c
+++ b/src/mesa/main/accum.c
@@ -419,21 +419,21 @@ accum(struct gl_context *ctx, GLenum op, GLfloat value)
          accum_or_load(ctx, value, xpos, ypos, width, height, GL_FALSE);
       }
       break;
    case GL_LOAD:
       accum_or_load(ctx, value, xpos, ypos, width, height, GL_TRUE);
       break;
    case GL_RETURN:
       accum_return(ctx, value, xpos, ypos, width, height);
       break;
    default:
-      _mesa_problem(ctx, "invalid mode in _mesa_Accum()");
+      unreachable("invalid mode in _mesa_Accum()");
       break;
    }
 }
 
 
 void 
 _mesa_init_accum( struct gl_context *ctx )
 {
    /* Accumulate buffer group */
    ASSIGN_4V( ctx->Accum.ClearColor, 0.0, 0.0, 0.0, 0.0 );
-- 
2.9.3



More information about the mesa-dev mailing list