/* Forwards for attribute handlers */
static void NoReturnAttr (Declaration* D);
+static void UnusedAttr (Declaration* D);
};
static const AttrDesc AttrTable [] = {
{ "__noreturn__", NoReturnAttr },
+ { "__unused__", UnusedAttr },
{ "noreturn", NoReturnAttr },
+ { "unused", UnusedAttr },
};
-void NoReturnAttr (Declaration* D)
+static void NoReturnAttr (Declaration* D)
/* Parse the "noreturn" attribute */
{
/* Add the noreturn attribute */
+static void UnusedAttr (Declaration* D)
+/* Parse the "unused" attribute */
+{
+ /* Add the noreturn attribute */
+ AddAttr (D, NewDeclAttr (atUnused));
+}
+
+
+
void ParseAttribute (Declaration* D)
/* Parse an additional __attribute__ modifier */
{