- Wnone = 0, /**< Issue no warnings. */
- Wmidrule_values = 1 << 0, /**< Unset or unused midrule values. */
- Wyacc = 1 << 1, /**< POSIXME. */
- Wconflicts_sr = 1 << 2, /**< S/R conflicts. */
- Wconflicts_rr = 1 << 3, /**< R/R conflicts. */
- Wdeprecated = 1 << 4, /**< Obsolete constructs. */
- Wother = 1 << 5, /**< All other warnings. */
+ warning_midrule_values, /**< Unset or unused midrule values. */
+ warning_yacc, /**< POSIXME. */
+ warning_conflicts_sr, /**< S/R conflicts. */
+ warning_conflicts_rr, /**< R/R conflicts. */
+ warning_deprecated, /**< Obsolete constructs. */
+ warning_precedence, /**< Useless precedence and associativity. */
+ warning_other, /**< All other warnings. */
+
+ warnings_size /**< The number of warnings. Must be last. */
+ } warning_bit;
+
+typedef enum
+ {
+ /**< Issue no warnings. */
+ Wnone = 0,
+
+ Wmidrule_values = 1 << warning_midrule_values,
+ Wyacc = 1 << warning_yacc,
+ Wconflicts_sr = 1 << warning_conflicts_sr,
+ Wconflicts_rr = 1 << warning_conflicts_rr,
+ Wdeprecated = 1 << warning_deprecated,
+ Wprecedence = 1 << warning_precedence,
+ Wother = 1 << warning_other,