From: Brian Paul Date: Fri, 10 Oct 2003 18:11:17 +0000 (+0000) Subject: add switch defaults to silence warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6804945b332c90c72dd919feff565e6151414cf;p=mesa.git add switch defaults to silence warnings --- diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c index 5e7ea3943eb..e07a4a0a6a7 100644 --- a/src/mesa/main/program.c +++ b/src/mesa/main/program.c @@ -726,6 +726,9 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[], case STATE_LOCAL: COPY_4V(value, ctx->FragmentProgram.Current->Base.LocalParams[idx]); break; + default: + _mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()"); + return; } } return; @@ -744,6 +747,9 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[], case STATE_LOCAL: COPY_4V(value, ctx->VertexProgram.Current->Base.LocalParams[idx]); break; + default: + _mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()"); + return; } } return;