Skip to content

Commit 98274e8

Browse files
committed
Fix compiler warning
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. This back-patches commit 333a186 into out-of-support branches, pursuant to newly-established project policy. The point is to suppress scary-looking warnings so that people building these branches needn't expend brain cells verifying that it's safe to ignore the warnings. Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com
1 parent 265b96a commit 98274e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ parseQuery(Command *cmd, const char *raw_sql)
14901490
p = sql;
14911491
while ((p = strchr(p, ':')) != NULL)
14921492
{
1493-
char var[12];
1493+
char var[13];
14941494
char *name;
14951495
int eaten;
14961496

0 commit comments

Comments
 (0)