mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-20 06:08:30 +02:00
st/mesa: Silence uninitialized variable warning.
Fixes this GCC warning. state_tracker/st_program.c: In function 'st_print_shaders': state_tracker/st_program.c:735: warning: 'sh' may be used uninitialized in this function
This commit is contained in:
parent
aa43176ebd
commit
a54ab4960b
1 changed files with 4 additions and 0 deletions
|
|
@ -744,6 +744,10 @@ st_print_shaders(struct gl_context *ctx)
|
|||
case GL_FRAGMENT_SHADER:
|
||||
sh = (i != 2) ? NULL : shProg[j]->Shaders[i];
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
sh = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
if (sh != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue