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:
Christophe de Dinechin 2018-02-07 11:58:12 +01:00
parent b34478a652
commit afb90c1640

View File

@ -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
------------------------