From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/gcc~13/enumerator-attributes.html | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 devdocs/gcc~13/enumerator-attributes.html (limited to 'devdocs/gcc~13/enumerator-attributes.html') diff --git a/devdocs/gcc~13/enumerator-attributes.html b/devdocs/gcc~13/enumerator-attributes.html deleted file mode 100644 index 647c8f8d..00000000 --- a/devdocs/gcc~13/enumerator-attributes.html +++ /dev/null @@ -1,22 +0,0 @@ -

6.37 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 Declaring Attributes of Functions), variables (see Specifying Attributes of Variables), labels (see Label Attributes), statements (see Statement Attributes), and for types (see Specifying Attributes of Types).

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

enum E {
-  oldval __attribute__((deprecated)),
-  newval
-};
-
-int
-fn (void)
-{
-  return oldval;
-}
-
-deprecated -
-

The deprecated attribute results in a warning if the enumerator is used anywhere in the source file. This is useful when identifying enumerators that are expected to be removed in a future version of a program. The warning also includes the location of the declaration of the deprecated enumerator, to enable users to easily find further information about why the enumerator is deprecated, or what they should do instead. Note that the warnings only occurs for uses.

-unavailable -
-

The unavailable attribute results in an error if the enumerator is used anywhere in the source file. In other respects it behaves in the same manner as the deprecated attribute.

-

- © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
- https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Enumerator-Attributes.html -

-
-- cgit v1.2.3