1
0
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:
Brad Jorsch
2011-08-09 16:13:13 -04:00
committed by Carlos R. Mafra
parent d9296ff9a4
commit a06b0673d8
2 changed files with 3 additions and 0 deletions

View File

@@ -704,6 +704,8 @@ static Pixmap renderMenu(_Panel * panel, WMPropList * texture, int width, int ih
case MSTYLE_FLAT:
pix = renderTexture(scr, texture, width, iheight * 4, NULL, RBEV_RAISED2);
break;
default:
pix = None;
}
XFreeGC(dpy, gc);

View File

@@ -320,6 +320,7 @@ static void getLocalizedStringValue(char **target, const char *line, int *match_
p = line;
kstart = 0;
sqbstart = 0;
sqbend = 0;
locale = NULL;
/* skip until after '=', mark if '[' and ']' is found */