Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH] Sparse fixes for http-fetch

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2016-06-15 22:42:08

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help