Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qalNe-00AJUq-D7 for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Aug 2023 23:10:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qalNc-00GzJS-17 for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Aug 2023 23:10:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qalNb-00GzJG-Mj for pgsql-hackers@lists.postgresql.org; Mon, 28 Aug 2023 23:10:43 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qalNY-001cbh-3C for pgsql-hackers@postgresql.org; Mon, 28 Aug 2023 23:10:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=yPHGt7QqBkXttMwZgOA31ttaKdOLk8JMIEXXyok/uHI=; b=kyDLf 1WJ6TIfl18RhJS1uLm1NptM2cWBsUcA9FX+cmpEbPG3fwhxOH3b8vU3G1xNOv9e2pXFI/ldoWcubn FPwFhmGo0iUOtBP7LC2lCGhk9rBZVfOzlkUzkJc7+9Tt/E7AFI7kZEfiuiiOy23K4JFl/G5Xo9Nnj hAawCVO7yu+uVpnPPOykCpaNrttUG+Vs8o3/Hd+MZkI/91bSi47MSoDBBfRt+Je3hynpHTC8ZUvlB hgdZ/2iunFZ2RlAbxGQtakhBh8l4sim0uvEq1fSiqn0kBbtQz+I4F3vuEf1azI4rk2M5b8RkMJdJt e5w4rhMpK1sJtBWr/7baTbgnKeu6w==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qalNW-00G0d5-1r; Mon, 28 Aug 2023 19:10:38 -0400 Date: Mon, 28 Aug 2023 19:10:38 -0400 From: Bruce Momjian To: Michael Paquier Cc: PostgreSQL-development Subject: Re: Debian 12 gcc warning Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Aug 29, 2023 at 07:30:15AM +0900, Michael Paquier wrote: > On Mon, Aug 28, 2023 at 03:37:20PM -0400, Bruce Momjian wrote: > > I don't see a clean way of avoiding the warning except by initializing > > the array, which seems wasteful. > > Or just initialize the array with a {0}? Uh, doesn't that set all elements to zero? See: https://stackoverflow.com/questions/2589749/how-to-initialize-array-to-0-in-c -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.