Thread (3 messages) flat view 3 messages, 3 authors, 2011-07-17

Re: [PATCH v2] dtc: Remove unused variable in flat_read_mem_reserve

From: Jon Loeliger <hidden>
Date: 2011-07-17 13:11:47

On Tue, Jun 28, 2011 at 09:47:11AM -0400, Josh Boyer wrote:
quoted
The *p variable is declared and used to save inb->ptr, however p is
later never used.  This has been the case since commit 6c0f3676 and can
lead to build failures with -Werror=unused-but-set-variable:

	flattree.c: In function 'flat_read_mem_reserve':
	flattree.c:700:14: error: variable 'p' set but not used [-Werror=unused-but-set-variable]
	cc1: all warnings being treated as errors
	make: *** [flattree.o] Error 1

Remove the variable.

Signed-off-by: Josh Boyer <redacted>
Acked-by: David Gibson <redacted>
Applied.

jdl
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help