From 824a34ee1e5e45a6210a34754afada26b4ebd560 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 14 Apr 2023 18:58:43 +0300 Subject: [PATCH] engine: common: imgelib: fix declaration after statement in test code --- engine/common/imagelib/img_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/common/imagelib/img_main.c b/engine/common/imagelib/img_main.c index 11d8d51d..3c749eb4 100644 --- a/engine/common/imagelib/img_main.c +++ b/engine/common/imagelib/img_main.c @@ -576,12 +576,13 @@ void Test_RunImagelib( void ) for( i = 0; i < sizeof(extensions) / sizeof(extensions[0]); i++ ) { + qboolean ret; char name[MAX_VA_STRING]; Q_snprintf( name, sizeof( name ), "test_gen.%s", extensions[i] ); // test saving - qboolean ret = FS_SaveImage( name, &rgb ); + ret = FS_SaveImage( name, &rgb ); Con_Printf( "Checking if we can save images in '%s' format...\n", extensions[i] ); ASSERT(ret == true);