mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
wcolorpanel.c: Remove warning in rgbIntToChar
This patch removes this warning. The default case should not be used. wcolorpanel.c: In function ‘rgbIntToChar’: wcolorpanel.c:2392:2: warning: ‘format’ may be used uninitialized in this function [-Wmaybe-uninitialized] sprintf(tmp, format, value[1]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
committed by
Carlos R. Mafra
parent
972d85610a
commit
fb5f6c30c0
@@ -2385,6 +2385,8 @@ void rgbIntToChar(W_ColorPanel *panel, int *value)
|
||||
case RGBhex:
|
||||
format = "%0X";
|
||||
break;
|
||||
default:
|
||||
format = "";
|
||||
}
|
||||
|
||||
sprintf(tmp, format, value[0]);
|
||||
|
||||
Reference in New Issue
Block a user