Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YVhSw-0003cy-VU for pgsql-committers@arkaria.postgresql.org; Wed, 11 Mar 2015 14:18:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YVhSw-0000hF-Ev for pgsql-committers@arkaria.postgresql.org; Wed, 11 Mar 2015 14:18:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YVhSv-0000h9-UK for pgsql-committers@postgresql.org; Wed, 11 Mar 2015 14:18:29 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YVhSm-0003My-Pr; Wed, 11 Mar 2015 14:18:28 +0000 Received: from intern.anarazel.de (p54895234.dip0.t-ipconnect.de [84.137.82.52]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 870A8860001; Wed, 11 Mar 2015 15:18:19 +0100 (CET) Date: Wed, 11 Mar 2015 15:18:19 +0100 From: Andres Freund To: Fujii Masao Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add GUC to enable compression of full page images stored in WAL. Message-ID: <20150311141819.GI12445@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Pg-Spam-Score: -4.2 (----) 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 Hi, On 2015-03-11 06:54:16 +0000, Fujii Masao wrote: > Add GUC to enable compression of full page images stored in WAL. This triggers a couple warnings here (gcc 4.9 and 5): /home/andres/src/postgresql/src/backend/access/transam/xloginsert.c: In function ‘XLogInsert’: /home/andres/src/postgresql/src/backend/access/transam/xloginsert.c:670:5: warning: ‘cbimg.hole_length’ may be used uninitialized in this function [-Wmaybe-uninitialized] memcpy(scratch, &cbimg, ^ /home/andres/src/postgresql/src/backend/access/transam/xloginsert.c:494:33: note: ‘cbimg.hole_length’ was declared here XLogRecordBlockCompressHeader cbimg; ^ /home/andres/src/postgresql/src/backend/access/transam/xloginsert.c:668:20: warning: ‘hole_length’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (hole_length != 0 && is_compressed) ^ /home/andres/src/postgresql/src/backend/access/transam/xloginsert.c:497:10: note: ‘hole_length’ was declared here uint16 hole_length; I've not checked whether they're spurious or not. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers