qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Stefan Weil <sw@weilnetz.de>,
	Michael Tokarev <mjt@tls.msk.ru>,
	Laurent Vivier <laurent@vivier.eu>,
	Michael Rolnik <mrolnik@gmail.com>
Subject: [PULL 09/10] target/avr: Fix compiler errors (-Werror=enum-conversion)
Date: Thu, 16 Sep 2021 16:10:25 +0200	[thread overview]
Message-ID: <20210916141026.1174822-10-laurent@vivier.eu> (raw)
In-Reply-To: <20210916141026.1174822-1-laurent@vivier.eu>

From: Stefan Weil <sw@weilnetz.de>

../target/avr/translate.c: In function ‘gen_jmp_ez’:
../target/avr/translate.c:1012:22: error: implicit conversion from ‘enum <anonymous>’ to ‘DisasJumpType’ [-Werror=enum-conversion]
 1012 |     ctx->base.is_jmp = DISAS_LOOKUP;
      |                      ^

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Michael Rolnik <mrolnik@gmail.com>
Message-Id: <20210706180936.249912-1-sw@weilnetz.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 target/avr/translate.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/target/avr/translate.c b/target/avr/translate.c
index 1111e08b83f3..438e7b13c18d 100644
--- a/target/avr/translate.c
+++ b/target/avr/translate.c
@@ -70,11 +70,9 @@ static const char reg_names[NUMBER_OF_CPU_REGISTERS][8] = {
 };
 #define REG(x) (cpu_r[x])
 
-enum {
-    DISAS_EXIT   = DISAS_TARGET_0,  /* We want return to the cpu main loop.  */
-    DISAS_LOOKUP = DISAS_TARGET_1,  /* We have a variable condition exit.  */
-    DISAS_CHAIN  = DISAS_TARGET_2,  /* We have a single condition exit.  */
-};
+#define DISAS_EXIT   DISAS_TARGET_0  /* We want return to the cpu main loop.  */
+#define DISAS_LOOKUP DISAS_TARGET_1  /* We have a variable condition exit.  */
+#define DISAS_CHAIN  DISAS_TARGET_2  /* We have a single condition exit.  */
 
 typedef struct DisasContext DisasContext;
 
-- 
2.31.1



  parent reply	other threads:[~2021-09-16 14:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 14:10 [PULL 00/10] Trivial branch for 6.2 patches Laurent Vivier
2021-09-16 14:10 ` [PULL 01/10] util: Remove redundant checks in the openpty() Laurent Vivier
2021-09-16 14:10 ` [PULL 02/10] hw/i386/acpi-build: Fix a typo Laurent Vivier
2021-09-16 14:10 ` [PULL 03/10] qdev: Complete qdev_init_gpio_out() documentation Laurent Vivier
2021-09-16 14:10 ` [PULL 04/10] spelling: sytem => system Laurent Vivier
2021-09-16 14:10 ` [PULL 05/10] configure: add missing pc-bios/qemu_vga.ndrv symlink in build tree Laurent Vivier
2021-09-16 14:10 ` [PULL 06/10] target/i386: spelling: occured=>occurred, mininum=>minimum Laurent Vivier
2021-09-16 14:10 ` [PULL 07/10] intel_iommu: Fix typo in comments Laurent Vivier
2021-09-16 14:10 ` [PULL 08/10] hw/vfio: " Laurent Vivier
2021-09-16 14:10 ` Laurent Vivier [this message]
2021-09-16 14:10 ` [PULL 10/10] target/sparc: Make sparc_cpu_dump_state() static Laurent Vivier
2021-09-16 20:08 ` [PULL 00/10] Trivial branch for 6.2 patches 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=20210916141026.1174822-10-laurent@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=mjt@tls.msk.ru \
    --cc=mrolnik@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=sw@weilnetz.de \
    /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).