mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Fix some "'var' may be used uninitialized" warnings
The one in WPrefs.app/Appearance.c is indirect: the function might be inlined and might return an uninitialized value, which causes gcc to complain that the caller might use that uninitialized return value.
This commit is contained in:
committed by
Carlos R. Mafra
parent
d9296ff9a4
commit
a06b0673d8
@@ -704,6 +704,8 @@ static Pixmap renderMenu(_Panel * panel, WMPropList * texture, int width, int ih
|
|||||||
case MSTYLE_FLAT:
|
case MSTYLE_FLAT:
|
||||||
pix = renderTexture(scr, texture, width, iheight * 4, NULL, RBEV_RAISED2);
|
pix = renderTexture(scr, texture, width, iheight * 4, NULL, RBEV_RAISED2);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
pix = None;
|
||||||
}
|
}
|
||||||
XFreeGC(dpy, gc);
|
XFreeGC(dpy, gc);
|
||||||
|
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ static void getLocalizedStringValue(char **target, const char *line, int *match_
|
|||||||
p = line;
|
p = line;
|
||||||
kstart = 0;
|
kstart = 0;
|
||||||
sqbstart = 0;
|
sqbstart = 0;
|
||||||
|
sqbend = 0;
|
||||||
locale = NULL;
|
locale = NULL;
|
||||||
|
|
||||||
/* skip until after '=', mark if '[' and ']' is found */
|
/* skip until after '=', mark if '[' and ']' is found */
|
||||||
|
|||||||
Reference in New Issue
Block a user