From: simon 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-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/daa621ff751ebfd3ad55d3b8c3a0ff079cb314e9?hp=d0370c96527b48387a0fb0fbf5ccc8b9d8cc6458 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@8119 cda61777-01e9-0310-a592-d414129be87e --- 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) {