6.35. Enumerator Attributes

6.35 Enumerator Attributes

GCC allows attributes to be set on enumerators. 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), statements (see Statement Attributes), and for types (see Type Attributes).

This example uses the deprecated enumerator attribute to indicate the oldval enumerator is deprecated: