Thread (1 message) 1 message, 1 author, 2012-06-25

Re: [PATCH] Fix compilation warning/error in setprop_inplace.c

From: David Gibson <hidden>
Date: 2012-06-25 02:56:48

On Wed, Jun 13, 2012 at 12:31:52PM +1000, David Gibson wrote:
On Tue, Jun 12, 2012 at 02:48:12PM -0600, Stephen Warren wrote:
quoted
From: Stephen Warren <redacted>

When compiling the current code-base with gcc 4.6.1, the following warning
is raised, which is interpreted as an error:

cc1: warnings being treated as errors
tests/setprop_inplace.c: In function ‘main’:
tests/setprop_inplace.c:62: error: format ‘%016llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
tests/setprop_inplace.c:68: error: format ‘%016llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’

Use printf format specifiers from <inttypes.h> to solve this.

Signed-off-by: Stephen Warren <redacted>
Acked-by: David Gibson <redacted>
Jon?

Please apply...


-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help