projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Warn that the '0' flag is ignored, if the precision is present in a format specification.
[cparser]
/
format_check.c
diff --git
a/format_check.c
b/format_check.c
index
16eafd1
..
b550672
100644
(file)
--- a/
format_check.c
+++ b/
format_check.c
@@
-228,6
+228,10
@@
break_fmt_flags:
/* precision */
if (fmt == '.') {
+ if (fmt_flags & FMT_FLAG_ZERO) {
+ warningf(WARN_FORMAT, pos, "'0' flag ignored with precision in conversion specification %u", num_fmt);
+ }
+
++num_args;
fmt = *(++c);
if (fmt == '*') {