Re: pgsql: pgbench: Allow changing weights for scripts - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: pgbench: Allow changing weights for scripts
Date
Msg-id 5763.1458413125@sss.pgh.pa.us
Whole thread Raw
In response to pgsql: pgbench: Allow changing weights for scripts  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: pgsql: pgbench: Allow changing weights for scripts
Re: pgsql: pgbench: Allow changing weights for scripts
List pgsql-committers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> pgbench: Allow changing weights for scripts

I'm seeing a bunch of warnings seemingly due to this commit:

pgbench.c: In function 'process_builtin':
pgbench.c:2765: warning: 'ps.stats.lag.sum2' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.lag.sum' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.lag.max' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.lag.min' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.lag.count' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.latency.sum2' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.latency.sum' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.latency.max' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.latency.min' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.latency.count' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.skipped' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.cnt' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.stats.start_time' is used uninitialized in this function
pgbench.c:2765: warning: 'ps.weight' is used uninitialized in this function

Usually, when gcc says that, it's not a false positive.

            regards, tom lane


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Sync backend/parser/scan.l with bin/psql/psqlscan.l.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: pgbench: Silence new compiler warnings