From: Ben Pfaff Date: Mon, 23 Jul 2007 05:07:23 +0000 (+0000) Subject: (read_variable_to_value_map): Use max_warnings X-Git-Tag: v0.6.0~361 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c3d1da71a10a31270d669d7410e52a7c66ed396;p=pspp-builds.git (read_variable_to_value_map): Use max_warnings local variable instead of literal 5. --- diff --git a/src/data/ChangeLog b/src/data/ChangeLog index 516447db..396ef1ca 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,8 @@ +2007-07-22 Ben Pfaff + + * sys-file-reader.c (read_variable_to_value_map): Use max_warnings + local variable instead of literal 5. + 2007-07-22 Ben Pfaff Fix problems with uniqueness of short names in system files with diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index 9a0c054c..7dfba894 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -1579,7 +1579,7 @@ read_variable_to_value_map (struct sfm_reader *r, struct dictionary *dict, *var = lookup_var_by_short_name (dict, ss_data (short_name_ss)); if (*var == NULL) { - if (++*warning_cnt <= 5) + if (++*warning_cnt <= max_warnings) sys_warn (r, _("Variable map refers to unknown variable %s."), ss_data (short_name_ss)); continue;