Fixed warning C4127 (conditional expression is constant) in Visual Studio

This commit is contained in:
Sam Lantinga
2025-11-17 16:06:58 -08:00
parent b144c79da2
commit 4931c675ab
5 changed files with 144 additions and 157 deletions

View File

@@ -1093,7 +1093,6 @@ static void ChooseBestCameraSpec(SDL_Camera *device, const SDL_CameraSpec *spec,
// that.
SDL_zerop(closest);
SDL_assert(((Uint32) SDL_PIXELFORMAT_UNKNOWN) == 0); // since we SDL_zerop'd to this value.
if (device->num_specs == 0) { // device listed no specs! You get whatever you want!
if (spec) {