This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] Add -fmax-errors option to limit the number of errors emitted.
On Wed, Nov 08, 2006 at 10:57:09PM -0800, Brooks Moses wrote:
>Steve Kargl wrote:
>For the record, though, this isn't due to RejectNegative, which is
>related to whether there's a "no-" version of the option. The reason
>this can never happen is that the UInteger option flag means to only
>allow unsigned integers.
Right. Typo on my part, sorry.
>+static void
>+gfc_increment_error_count (void)
>+{
>+ errors++;
>+ if ((gfc_option.max_errors != 0) && (errors >= gfc_option.max_errors))
>+ gfc_fatal_error ("Error count reached limit of %d.", gfc_option.max_errors);
Quick question wrt the punctuation. It seems that the majority but not
all of warning/error messages omit the trailing dot.
Should this be made consistent, either to add or to omit the
punctuation at the end of these messages?