From bce598adddd369ed4329a3eedf5a8c5079a9306a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 26 Jul 2023 15:48:44 -0400 Subject: [PATCH] SDL_pixels.c: Fixed compiler warning on Android NDK. --- src/video/SDL_pixels.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/video/SDL_pixels.c b/src/video/SDL_pixels.c index 90941fb69..acf21cca0 100644 --- a/src/video/SDL_pixels.c +++ b/src/video/SDL_pixels.c @@ -314,10 +314,8 @@ Uint32 SDL_GetPixelFormatEnumForMasks(int bpp, Uint32 Rmask, Uint32 Gmask, Uint3 Bmask == 0x03 && Amask == 0x00) { return SDL_PIXELFORMAT_RGB332; - } else { - return SDL_PIXELFORMAT_INDEX8; } - break; + return SDL_PIXELFORMAT_INDEX8; case 12: if (Rmask == 0) { return SDL_PIXELFORMAT_RGB444;