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

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

From: Jon Loeliger <hidden>
Date: 2012-06-27 13:03:08

On Wed, Jun 13, 2012 at 12:31:52PM +1000, David Gibson wrote:
quoted
On Tue, Jun 12, 2012 at 02:48:12PM -0600, Stephen Warren wrote:
quoted
From: Stephen Warren <redacted>
=20
When compiling the current code-base with gcc 4.6.1, the following wa=
rning
quoted
quoted
is raised, which is interpreted as an error:
=20
cc1: warnings being treated as errors
tests/setprop_inplace.c: In function =E2=80=98main=E2=80=99:
tests/setprop_inplace.c:62: error: format =E2=80=98%016llx=E2=80=99 e=
xpects type =E2=80=98long long unsigned int=E2=80=99, but argument 2 has =
type =E2=80=98uint64_t=E2=80=99
quoted
quoted
tests/setprop_inplace.c:68: error: format =E2=80=98%016llx=E2=80=99 e=
xpects type =E2=80=98long long unsigned int=E2=80=99, but argument 2 has =
type =E2=80=98uint64_t=E2=80=99
quoted
quoted
=20
Use printf format specifiers from <inttypes.h> to solve this.
=20
Signed-off-by: Stephen Warren <redacted>
=20
Acked-by: David Gibson <redacted>
Jon?

Please apply...
Applied and pushed out.

Sorry,
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