mesa/ffvs: use unreachable instead of assert

Otherwise I trigger a compiler warning here about a potentially
unwritten variable. Let's just make it clear to the compiler what's
going on.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26064>
This commit is contained in:
Erik Faye-Lund 2023-11-06 12:56:19 +01:00 committed by Marge Bot
parent 3626d07d66
commit 15291cdefa

View file

@ -1065,8 +1065,7 @@ static void build_fog( struct tnl_program *p )
fog = load_input(p, VERT_ATTRIB_FOG, glsl_float_type());
break;
default:
assert(!"Bad fog mode in build_fog()");
break;
unreachable("Bad fog mode in build_fog()");
}
store_output_float(p, VARYING_SLOT_FOGC, fog);