From: Stefan Weil <sw@weilnetz.de>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org, Stefan Weil <sw@weilnetz.de>
Subject: [Qemu-devel] [PATCH for-1.5] spitz: Fix compiler warning (MinGW-w64)
Date: Sat, 18 May 2013 14:02:34 +0200 [thread overview]
Message-ID: <1368878554-28447-1-git-send-email-sw@weilnetz.de> (raw)
Macro MOD_SHIFT is also defined in imm.h:
/qemu/hw/arm/spitz.c:280:1: warning: "MOD_SHIFT" redefined
/usr/lib/gcc/amd64-mingw32msvc/4.4.4/../../../../amd64-mingw32msvc/include/imm.h:309:1:
warning: this is the location of the previous definition
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
hw/arm/spitz.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/arm/spitz.c b/hw/arm/spitz.c
index b5ed109..5be68eb 100644
--- a/hw/arm/spitz.c
+++ b/hw/arm/spitz.c
@@ -277,6 +277,8 @@ static void spitz_keyboard_keydown(SpitzKeyboardState *s, int keycode)
spitz_keyboard_sense_update(s);
}
+#undef MOD_SHIFT /* avoid redefinition, see imm.h from MinGW-w64 */
+
#define MOD_SHIFT (1 << 7)
#define MOD_CTRL (1 << 8)
#define MOD_FN (1 << 9)
--
1.7.10.4
next reply other threads:[~2013-05-18 12:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-18 12:02 Stefan Weil [this message]
2013-05-20 11:36 ` [Qemu-devel] [PATCH for-1.5] spitz: Fix compiler warning (MinGW-w64) Peter Maydell
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=1368878554-28447-1-git-send-email-sw@weilnetz.de \
--to=sw@weilnetz.de \
--cc=aliguori@us.ibm.com \
--cc=pbonzini@redhat.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).