All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] vnc: Add break statement
@ 2012-02-25 13:57 ` Stefan Weil
  0 siblings, 0 replies; 12+ messages in thread
From: Stefan Weil @ 2012-02-25 13:57 UTC (permalink / raw)
  To: QEMU Trivial; +Cc: Stefan Weil, Anthony Liguori, qemu-devel

This was not a bug, but it is not common practice to omit the break statement
from the last case statement before an empty default case.

Any change of the default case would introduce a bug.

This was reported as a warning by splint.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 ui/vnc-enc-hextile-template.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ui/vnc-enc-hextile-template.h b/ui/vnc-enc-hextile-template.h
index b9f9f5e..a7310e1 100644
--- a/ui/vnc-enc-hextile-template.h
+++ b/ui/vnc-enc-hextile-template.h
@@ -175,6 +175,7 @@ static void CONCAT(send_hextile_tile_, NAME)(VncState *vs,
 	    /* we really don't have to invalidate either the bg or fg
 	       but we've lost the old values.  oh well. */
 	}
+        break;
     default:
 	break;
     }
-- 
1.7.9



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

end of thread, other threads:[~2012-02-25 16:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-25 13:57 [Qemu-trivial] [PATCH] vnc: Add break statement Stefan Weil
2012-02-25 13:57 ` [Qemu-devel] " Stefan Weil
2012-02-25 14:18 ` [Qemu-trivial] " Eric Blake
2012-02-25 14:18   ` Eric Blake
2012-02-25 14:38   ` [Qemu-trivial] " Stefan Weil
2012-02-25 14:38     ` Stefan Weil
2012-02-25 15:57 ` [Qemu-trivial] " Andreas Färber
2012-02-25 15:57   ` Andreas Färber
2012-02-25 16:09   ` [Qemu-trivial] " Stefan Weil
2012-02-25 16:09     ` Stefan Weil
2012-02-25 16:18     ` [Qemu-trivial] " Andreas Färber
2012-02-25 16:18       ` Andreas Färber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.