From 616031416c952cc595fb538b2dc65cba9a075c4c Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Thu, 9 May 2024 21:52:20 +0000 Subject: [PATCH] Fix warning: tkImgListFormat.c:1092:5: warning: variable 'suffixAlpha' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] --- generic/tkImgListFormat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/tkImgListFormat.c b/generic/tkImgListFormat.c index 2c3405e66..d2a674d60 100644 --- a/generic/tkImgListFormat.c +++ b/generic/tkImgListFormat.c @@ -1002,7 +1002,7 @@ ParseColorAsStandard( const char *suffixString, *colorString; char colorBuffer[TK_PHOTO_MAX_COLOR_LENGTH + 1]; double fracAlpha; - unsigned int suffixAlpha; + unsigned int suffixAlpha = 0; int i; /*