From: Ben Pfaff Date: Sun, 30 Jan 2011 23:40:17 +0000 (-0800) Subject: sys-file-reader: Really enable warnings for invalid variable formats. X-Git-Tag: v0.7.7~87 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c335df036f26ba66ad3d6d4fd0fef6b7f8bf359;p=pspp-builds.git sys-file-reader: Really enable warnings for invalid variable formats. With these operator in the wrong order, I never saw any warnings, although other people might have seen different behavior. --- diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index cce41642..23acd96f 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -744,7 +744,7 @@ parse_format_spec (struct sfm_reader *r, unsigned int s, else var_set_write_format (v, &f); } - else if (*++format_warning_cnt <= max_format_warnings) + else if (++*format_warning_cnt <= max_format_warnings) { char fmt_string[FMT_STRING_LEN_MAX + 1]; sys_warn (r, _("%s variable %s has invalid %s format %s."),