From: Simon Tatham Date: Thu, 17 Jul 2008 17:01:27 +0000 (+0000) Subject: At least one version of gcc won't figure out that "clear" is never X-Git-Tag: 0.61~237 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=853361c5b0122f503d4ea5d51766490fa4e3030d;hp=a071dfdcd2713f4e6569486e2da790fd21a0408d;p=PuTTY.git At least one version of gcc won't figure out that "clear" is never read uninitialised (because the only circumstance under which it isn't initialised is when "update" is FALSE, in which case it isn't read either). Placate it. [originally from svn r8119] --- diff --git a/config.c b/config.c index 8be448e8..85e13c2e 100644 --- a/config.c +++ b/config.c @@ -623,7 +623,7 @@ static void colour_handler(union control *ctrl, void *dlg, Config *cfg = (Config *)data; struct colour_data *cd = (struct colour_data *)ctrl->generic.context.p; - int update = FALSE, clear, r, g, b; + int update = FALSE, clear = FALSE, r, g, b; if (event == EVENT_REFRESH) { if (ctrl == cd->listbox) {