projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7c1c33
)
Fix compiler warning
author
Peter Eisentraut
<
[email protected]
>
Mon, 12 Aug 2019 19:20:14 +0000
(21:20 +0200)
committer
Peter Eisentraut
<
[email protected]
>
Mon, 12 Aug 2019 19:27:16 +0000
(21:27 +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.
contrib/pgbench/pgbench.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pgbench/pgbench.c
b/contrib/pgbench/pgbench.c
index ee2df8fb33ce6b7c3d325c0e07b2b0c44971bbf6..21eed7acf305ec8d6f810f04afdec9fa8d44767e 100644
(file)
--- a/
contrib/pgbench/pgbench.c
+++ b/
contrib/pgbench/pgbench.c
@@
-1948,7
+1948,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;