X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/42d101da8dff74111b409fb92bd2b0853067d857..cc8962bdde81b04aa728aef21e53b4a08a0debfe:/src/complain.h diff --git a/src/complain.h b/src/complain.h index a4331848..0d81503d 100644 --- a/src/complain.h +++ b/src/complain.h @@ -98,7 +98,8 @@ typedef enum no_caret = 1 << 14, /**< Do not display caret location. */ /**< All above warnings. */ - Wall = ~complaint & ~fatal & ~silent + Weverything = ~complaint & ~fatal & ~silent, + Wall = Weverything & ~Wyacc } warnings; /** Whether the warnings of \a flags are all unset. @@ -123,6 +124,10 @@ void complain_indent (location const *loc, warnings flags, unsigned *indent, void deprecated_directive (location const *loc, char const *obsolete, char const *updated); +/** Report a repeated directive for a rule. */ +void duplicate_directive (char const *directive, + location first, location second); + /** 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. */