X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a99ec53eb1f3b85c1419a1624e360ada377af9ee..246ff8c1d38b041a080a7aa98711bf2728698b6f:/src/complain.h diff --git a/src/complain.h b/src/complain.h index b0a1a293..0110c6b5 100644 --- a/src/complain.h +++ b/src/complain.h @@ -1,6 +1,6 @@ /* Declaration for error-reporting function for Bison. - Copyright (C) 2000-2002, 2006, 2009-2012 Free Software Foundation, + Copyright (C) 2000-2002, 2006, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -36,7 +36,9 @@ typedef enum 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. */ + Wprecedence = 1 << 5, /**< Useless precedence and associativity. */ + + Wother = 1 << 6, /**< All other warnings. */ Werror = 1 << 10, /** This bit is no longer used. */ @@ -72,6 +74,10 @@ void complain_indent (location const *loc, warnings flags, unsigned *indent, __attribute__ ((__format__ (__printf__, 4, 5))); +/** Report an obsolete syntax, suggest the updated one. */ +void deprecated_directive (location const *loc, + char const *obsolete, char const *updated); + /** Warnings treated as errors shouldn't stop the execution as regular errors should (because due to their nature, it is safe to go on). Thus, there are three possible execution statuses. */