qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/1] Don't discard "const" in ldq_le_p()
@ 2008-12-11  0:04 Hollis Blanchard
  0 siblings, 0 replies; only message in thread
From: Hollis Blanchard @ 2008-12-11  0:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Hollis Blanchard

This fixes warnings like the following, which are repeated once for every file
including cpu-all.h (and there many of them).

In file included from /home/hollisb/source/qemu.git/target-ppc/cpu.h:801,
                 from /home/hollisb/source/qemu.git/qemu-common.h:74,
                 from /home/hollisb/source/qemu.git/hw/hw.h:5,
                 from /home/hollisb/source/qemu.git/vl.c:24:
qemu.git/cpu-all.h: In function `ldq_le_p':
qemu.git/cpu-all.h:268: warning: initialization discards qualifiers from pointer target type

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
---
 cpu-all.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpu-all.h b/cpu-all.h
index 7102014..fdeef0a 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -265,7 +265,7 @@ static inline int ldl_le_p(const void *ptr)
 
 static inline uint64_t ldq_le_p(const void *ptr)
 {
-    uint8_t *p = ptr;
+    const uint8_t *p = ptr;
     uint32_t v1, v2;
     v1 = ldl_le_p(p);
     v2 = ldl_le_p(p + 4);
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-11  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11  0:04 [Qemu-devel] [PATCH 1/1] Don't discard "const" in ldq_le_p() Hollis Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).