[Spice-commits] docs/spice_style.txt

Christophe de Dinechin c3d at kemper.freedesktop.org
Fri Feb 9 11:04:12 UTC 2018

 docs/spice_style.txt |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit afb90c164055987499da64689fc233326f1e899b
Author: Christophe de Dinechin <dinechin at redhat.com>
Date:   Wed Feb 7 11:58:12 2018 +0100

    Add mention of fall-through comments
    Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/docs/spice_style.txt b/docs/spice_style.txt
index 0c4fa50d..c8a4cff6 100644
--- a/docs/spice_style.txt
+++ b/docs/spice_style.txt
@@ -90,6 +90,11 @@ goto
 Using goto is allowed in C code for error handling. In any other case it will be used only as a special exception.
+If a switch case falls through (i.e. does not end with a `break`), annotate it with a `/* fall through */` comment. Some compilers will emit a warning otherwise.
 Defining Constant values

More information about the Spice-commits mailing list