From: Hollis Blanchard <hollisb@us.ibm.com>
To: qemu-devel@nongnu.org
Cc: Hollis Blanchard <hollisb@us.ibm.com>
Subject: [Qemu-devel] [PATCH 1/1] Don't discard "const" in ldq_le_p()
Date: Wed, 10 Dec 2008 18:04:11 -0600 [thread overview]
Message-ID: <1228953851-12272-1-git-send-email-hollisb@us.ibm.com> (raw)
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
reply other threads:[~2008-12-11 0:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1228953851-12272-1-git-send-email-hollisb@us.ibm.com \
--to=hollisb@us.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).