6.36. Statement Attributes

6.36 Statement Attributes

GCC allows attributes to be set on null statements. See Attribute Syntax, for details of the exact syntax for using attributes. Other attributes are available for functions (see Function Attributes), variables (see Variable Attributes), labels (see Label Attributes), enumerators (see Enumerator Attributes), and for types (see Type Attributes).

This example uses the fallthrough statement attribute to indicate that the -Wimplicit-fallthrough warn