Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkD1g-0007Pk-3g for pgsql-committers@arkaria.postgresql.org; Wed, 05 Apr 2023 23:58:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pkD1d-0006r3-9w for pgsql-committers@arkaria.postgresql.org; Wed, 05 Apr 2023 23:58:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkD1c-0006qt-Fs for pgsql-committers@lists.postgresql.org; Wed, 05 Apr 2023 23:58:49 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkD1Z-0002Fz-A6 for pgsql-committers@lists.postgresql.org; Wed, 05 Apr 2023 23:58:46 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 95E67320092E; Wed, 5 Apr 2023 19:58:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 05 Apr 2023 19:58:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1680739123; x=1680825523; bh=po rP/d4uGjDrlAmSzd+vS4KGA67/32MCsP5bfsolYU8=; b=c0+JBAbQslKT1V6Az8 S5A5NARlQbJY4kLag5GNNiMkG/YkRQOoTklEgadnMMukJNWxiYTpE5E3DLBrSOzt eCogjbkljBcndKrUQ3uy3NxcStLMS9ftqI/D4TsrBvAB6HugTjwOrX4kfGZ1q/Qd DdxRjmq4h+WOoc8MMiNgxpuSe1K4ICa5LoduGEVmgV616SKM2moUx0UVn/up18lT aPdA/Kpaqa/yZ3xr0LGqvIgS6JO+3rBp3ohJh6+WzwV+OzM3rDZ6wYbGE7grscEF YxvRq1rCEwYQMymYDV/x6hXeI+X1MIhtAl1p9tpmb7PlQ28HCmQuhTkWGH++Br+c dUTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680739123; x=1680825523; bh=porP/d4uGjDrl AmSzd+vS4KGA67/32MCsP5bfsolYU8=; b=sDwUK3U9R4yj+vdTsMCf6+r3lQYuZ za6MXlWsnpzMMpgpLspf/qcgUMUi7tvmYD9alD675B+2kcPbIqPR+21kxb2mAsDF d4ln1m4oKvf9NmQiH+PRbCa+Aqrzmr7IYJnd39EvIfd3dWRuJua4DO0E5b4US1HP kdU1v0w4tDi056ZpOk/jEe4AqmCkhJ2z4Fu279vad/IHsqtapi2vMPkDHUhilNvM 5MIcN4evYudNTIc4fE4mdXdl4peI1IYYWfp4lbtaCKy75zTkOOdcYRvVsZ+ERYhk oh6w40gLyGBZR/u4lYY1ol7XpVAjGjVbraZBepCtOmFE+3BpX6JlzO97g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejvddgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegr nhgrrhgriigvlhdruggvqeenucggtffrrghtthgvrhhnpedvffefvefhteevffegieetfe fhtddvffejvefhueetgeeludehteevudeitedtudenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Apr 2023 19:58:42 -0400 (EDT) Date: Wed, 5 Apr 2023 16:58:41 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Don't initialize page in {vm,fsm}_extend(), not needed Message-ID: <20230405235841.6lqaxjkndh2qlmii@awork3.anarazel.de> References: <2194723.1680736788@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2194723.1680736788@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-04-05 19:19:48 -0400, Tom Lane wrote: > Andres Freund writes: > > Don't initialize page in {vm,fsm}_extend(), not needed > > Various buildfarm members are complaining about under-braced > initializations added by this commit. > > visibilitymap.c: In function \342\200\230vm_extend\342\200\231: > visibilitymap.c:625:2: warning: missing braces around initializer [-Wmissing-braces] > PGAlignedBlock pg = {0}; > ^ > visibilitymap.c:625:2: warning: (near initialization for \342\200\230pg.data\342\200\231) [-Wmissing-braces] > > freespace.c: In function \342\200\230fsm_extend\342\200\231: > freespace.c:611:2: warning: missing braces around initializer [-Wmissing-braces] > PGAlignedBlock pg = {0}; > ^ > freespace.c:611:2: warning: (near initialization for \342\200\230pg.data\342\200\231) [-Wmissing-braces] > > This is from buri, similar from curculio, dragonet, idiacanthus, > xenodermus, etc I really don't see the point of placating old compilers for things like this. It's just inflicting pain on ourselves without any reward. Just to be clear: I didn't knowingly trigger the warning. Either way, an upcoming commit will implement vm_extend() / fsm_extend() with generic code, then the warning will be gone. Greetings, Andres Freund