From: H. Peter Anvin Date: Thu, 13 Oct 2005 17:51:29 GMT Subject: Re: [PATCH] Sparse fixes for http-fetch Message-ID: <434E9EA1.3030002@zytor.com> In-Reply-To: <20051013174203.GA6860@peppar.cs.umu.se> Peter Hagervall wrote: > This patch cleans out all sparse warnings from http-fetch.c > > I'm a bit uncomfortable with adding extra #ifdefs to avoid either > 'mixing declaration with code' or 'unused variable' warnings, but I > figured that since those functions are already littered with #ifdefs I > might just get away with it. Comments? > For the first, you can use extra brackets to create blocks in which declarations can happen; for the latter, you can (void)var; to specify that a certain variable may be legitimately unused under some circumstances. -hpa