Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahLsU-0000gN-0c for pgsql-committers@arkaria.postgresql.org; Sat, 19 Mar 2016 18:45:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ahLsS-000413-QP for pgsql-committers@arkaria.postgresql.org; Sat, 19 Mar 2016 18:45:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ahLsS-00040w-DT for pgsql-committers@postgresql.org; Sat, 19 Mar 2016 18:45:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ahLsP-0005mP-Cy for pgsql-committers@postgresql.org; Sat, 19 Mar 2016 18:45:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2JIjPVc005764; Sat, 19 Mar 2016 14:45:26 -0400 From: Tom Lane To: Alvaro Herrera cc: pgsql-committers@postgresql.org Subject: Re: pgsql: pgbench: Allow changing weights for scripts In-reply-to: References: Comments: In-reply-to Alvaro Herrera message dated "Sat, 19 Mar 2016 15:35:13 -0000" Date: Sat, 19 Mar 2016 14:45:25 -0400 Message-ID: <5763.1458413125@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Alvaro Herrera 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 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers