projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bae875d
)
Fix compiler warning
author
Peter Eisentraut
<peter@eisentraut.org>
Mon, 12 Aug 2019 19:20:14 +0000
(21:20 +0200)
committer
Peter Eisentraut
<peter@eisentraut.org>
Mon, 12 Aug 2019 19:24:07 +0000
(21:24 +0200)
With some newer gcc versions (8 and 9) you get a -Wformat-overflow
warning here. In PG11 and later this was already fixed. Since it's
trivial, backport it to get the older branches building without
warnings.
src/bin/pgbench/pgbench.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pgbench/pgbench.c
b/src/bin/pgbench/pgbench.c
index 60a5af8a9ba9052bfb485bc565b9c167467a5e00..b08121c905eb524b42013ef0a856e4defe95564d 100644
(file)
--- a/
src/bin/pgbench/pgbench.c
+++ b/
src/bin/pgbench/pgbench.c
@@
-2231,7
+2231,7
@@
parseQuery(Command *cmd, const char *raw_sql)
p = sql;
while ((p = strchr(p, ':')) != NULL)
{
- char var[1
2
];
+ char var[1
3
];
char *name;
int eaten;