qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c
@ 2020-08-15 13:00 Rohit Shinde
  2020-08-15 15:03 ` no-reply
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Rohit Shinde @ 2020-08-15 13:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: Rohit Shinde, armbru, mdroth

Added the fallthrough comment so that the compiler doesn't emit an error on compiling with the -Wimplicit-fallthrough flag.

Signed off by: Rohit Shinde
---
 qapi/opts-visitor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qapi/opts-visitor.c b/qapi/opts-visitor.c
index 7781c23a42..43cf60d3a0 100644
--- a/qapi/opts-visitor.c
+++ b/qapi/opts-visitor.c
@@ -266,6 +266,7 @@ opts_next_list(Visitor *v, GenericList *tail, size_t size)
         }
         ov->list_mode = LM_IN_PROGRESS;
         /* range has been completed, fall through in order to pop option */
+        __attribute__((fallthrough));
 
     case LM_IN_PROGRESS: {
         const QemuOpt *opt;
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c
@ 2020-08-15 15:11 Rohit Shinde
  2020-08-15 15:26 ` Philippe Mathieu-Daudé
  2020-08-15 16:12 ` no-reply
  0 siblings, 2 replies; 11+ messages in thread
From: Rohit Shinde @ 2020-08-15 15:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: Rohit Shinde

Added the fallthrough comment so that the compiler doesn't emit an error on compiling with the -Wimplicit-fallthrough flag.

Signed-off-by: Rohit Shinde <rohit.shinde12194@gmail.com>
---
 qapi/opts-visitor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qapi/opts-visitor.c b/qapi/opts-visitor.c
index 7781c23a42..43cf60d3a0 100644
--- a/qapi/opts-visitor.c
+++ b/qapi/opts-visitor.c
@@ -266,6 +266,7 @@ opts_next_list(Visitor *v, GenericList *tail, size_t size)
         }
         ov->list_mode = LM_IN_PROGRESS;
         /* range has been completed, fall through in order to pop option */
+        __attribute__((fallthrough));
 
     case LM_IN_PROGRESS: {
         const QemuOpt *opt;
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c
@ 2020-08-15 15:12 Rohit Shinde
  2020-08-15 15:28 ` Philippe Mathieu-Daudé
  2020-08-15 16:30 ` no-reply
  0 siblings, 2 replies; 11+ messages in thread
From: Rohit Shinde @ 2020-08-15 15:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Rohit Shinde, armbru, mdroth

Added the fallthrough comment so that the compiler doesn't emit an error on compiling with the -Wimplicit-fallthrough flag.

Signed-off-by: Rohit Shinde <rohit.shinde12194@gmail.com>
---
 qapi/opts-visitor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qapi/opts-visitor.c b/qapi/opts-visitor.c
index 7781c23a42..43cf60d3a0 100644
--- a/qapi/opts-visitor.c
+++ b/qapi/opts-visitor.c
@@ -266,6 +266,7 @@ opts_next_list(Visitor *v, GenericList *tail, size_t size)
         }
         ov->list_mode = LM_IN_PROGRESS;
         /* range has been completed, fall through in order to pop option */
+        __attribute__((fallthrough));
 
     case LM_IN_PROGRESS: {
         const QemuOpt *opt;
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-08-15 17:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-15 13:00 [PATCH] Fixes: Fallthrough warning on line 270 of qemu/qapi/opts-visitor.c Rohit Shinde
2020-08-15 15:03 ` no-reply
2020-08-15 15:16 ` no-reply
2020-08-15 15:24 ` Philippe Mathieu-Daudé
2020-08-15 17:14   ` Rohit Shinde
  -- strict thread matches above, loose matches on Subject: below --
2020-08-15 15:11 Rohit Shinde
2020-08-15 15:26 ` Philippe Mathieu-Daudé
2020-08-15 16:12 ` no-reply
2020-08-15 15:12 Rohit Shinde
2020-08-15 15:28 ` Philippe Mathieu-Daudé
2020-08-15 16:30 ` no-reply

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).