projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc4324
)
sys-file-reader: Really enable warnings for invalid variable formats.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 30 Jan 2011 23:40:17 +0000
(15:40 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 4 Feb 2011 04:34:29 +0000
(20:34 -0800)
With these operator in the wrong order, I never saw any warnings, although
other people might have seen different behavior.
src/data/sys-file-reader.c
patch
|
blob
|
history
diff --git
a/src/data/sys-file-reader.c
b/src/data/sys-file-reader.c
index cce41642bec191e9f705579215735e76bba0586b..23acd96fcaa1d7ad33d4a70f11c18842db4dfdc0 100644
(file)
--- 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."),