X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0fe5a72a262cd4680513d135e1161f345fc3afb1..0d40b36417759153678ed0ad125bc912884f602d:/src/complain.h diff --git a/src/complain.h b/src/complain.h index 4239bf6d..63347785 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-2013 Free Software Foundation, + Copyright (C) 2000-2002, 2006, 2009-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -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. @@ -127,14 +128,14 @@ void deprecated_directive (location const *loc, 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. */ +/** 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. */ typedef enum { - status_none, - status_warning_as_error, - status_complaint + status_none, /**< No diagnostic issued so far. */ + status_warning_as_error, /**< A warning was issued (but no error). */ + status_complaint /**< An error was issued. */ } err_status; /** Whether an error was reported. */