Silence -Wmaybe-uninitialized warnings in tests.

This commit is contained in:
Pierre Wendling
2022-11-14 17:56:48 -05:00
committed by Sam Lantinga
parent a40b7cde10
commit d080e3bf3a
4 changed files with 14 additions and 2 deletions

View File

@@ -330,6 +330,7 @@ pixels_allocFreePalette(void *arg)
for (variation = 1; variation <= 3; variation++) {
switch (variation) {
/* Just one color */
default:
case 1:
ncolors = 1;
break;
@@ -426,6 +427,7 @@ pixels_calcGammaRamp(void *arg)
for (variation = 0; variation < 4; variation++) {
switch (variation) {
/* gamma = 0 all black */
default:
case 0:
gamma = 0.0f;
break;