mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
WINGs: increase temporary buffer to silence a gcc warning
The code limits the integer number to 0..359 so we need 4 bytes to store that, but that require too complex flow processing for compilers to deduce it. It does not cost to increase the temporary buffer to the minimum size requested by GCC, so let's do this, because spurious warnings can potentially divert us from more important ones. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
920c6d16b1
commit
1612d2f345
@@ -2645,7 +2645,7 @@ static void hsbTextFieldCallback(void *observerData, WMNotification * notificati
|
||||
{
|
||||
CPColor cpColor;
|
||||
int value[3];
|
||||
char tmp[4];
|
||||
char tmp[12]; /* We only 4 bytes needed, but compilers cannot know that */
|
||||
int n;
|
||||
W_ColorPanel *panel = (W_ColorPanel *) observerData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user