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 1jk9Rx-0004OY-Nf for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Jun 2020 16:56:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jk9Rt-0002Vi-Sb for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Jun 2020 16:56:05 +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 1jk9Rt-0002Vb-K9 for pgsql-hackers@lists.postgresql.org; Sat, 13 Jun 2020 16:56:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jk9Rr-0003lI-GY for pgsql-hackers@lists.postgresql.org; Sat, 13 Jun 2020 16:56:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 05DGu1Da845437; Sat, 13 Jun 2020 12:56:01 -0400 From: Tom Lane To: Peter Geoghegan cc: PostgreSQL Hackers Subject: Re: Uninitialized-variable warnings in nbtinsert.c In-reply-to: References: <841649.1592065060@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Sat, 13 Jun 2020 09:29:18 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <845435.1592067361.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 13 Jun 2020 12:56:01 -0400 Message-ID: <845436.1592067361@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: > On Sat, Jun 13, 2020 at 9:17 AM Tom Lane wrote: >> I scraped the buildfarm's compiler warnings today, as I do from >> time to time, and I noticed that half a dozen animals that normally >> don't report any uninitialized-variable warnings are complaining >> about "curitup" in _bt_doinsert. > (Clearly you meant _bt_check_unique(), not _bt_doinsert().) Ah, right. I was looking at calliphoridae's complaint when I wrote that: In file included from /home/andres/build/buildfarm-calliphoridae/HEAD/pgsq= l.build/../pgsql/src/backend/access/nbtree/nbtinsert.c:18: /home/andres/build/buildfarm-calliphoridae/HEAD/pgsql.build/../pgsql/src/b= ackend/access/nbtree/nbtinsert.c: In function \xe2\x80\x98_bt_doinsert\xe2= \x80\x99: but it must have inlined some stuff first. (A lot of the other complainers are fingering inline functions in nbtree.h, which is even less helpful.) > Thanks for bringing this to my attention. I'll push a commit that > initializes curitup shortly, targeting both the v13 branch and the > master branch. Thanks! regards, tom lane