mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-06 11:27:27 +00:00
Add mention of fall-through comments
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
b34478a652
commit
afb90c1640
@ -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.
|
||||
|
||||
switch
|
||||
------
|
||||
|
||||
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
|
||||
------------------------
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user