Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hzVjc-0007Ig-UD for pgsql-committers@arkaria.postgresql.org; Mon, 19 Aug 2019 00:41:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hzVja-0005oL-Rp for pgsql-committers@arkaria.postgresql.org; Mon, 19 Aug 2019 00:41:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hzVja-0005iJ-Hl for pgsql-committers@lists.postgresql.org; Mon, 19 Aug 2019 00:41:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hzVjX-0004OR-SN for pgsql-committers@lists.postgresql.org; Mon, 19 Aug 2019 00:41:16 +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 x7J0fCpN014375; Sun, 18 Aug 2019 20:41:13 -0400 From: Tom Lane To: Thomas Munro cc: pgsql-committers Subject: Re: pgsql: Fix incidental warnings from cpluspluscheck. In-reply-to: References: Comments: In-reply-to Thomas Munro message dated "Mon, 19 Aug 2019 12:26:19 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14373.1566175272.1@sss.pgh.pa.us> Date: Sun, 18 Aug 2019 20:41:12 -0400 Message-ID: <14374.1566175272@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Mon, Aug 19, 2019 at 11:01 AM Tom Lane wrote: >> Remove use of "register" keyword in hashfn.c. It's obsolescent >> according to recent C++ compilers, and no modern C compiler pays >> much attention to it either. > We have some more of those: > src/backend/regex/regexec.c > src/common/md5.c > src/include/port/atomics/arch-x86.h > src/include/storage/s_lock.h > src/pl/plperl/ppport.h I was just getting rid of the ones that cpluspluscheck complained about, which were in function prototypes. I doubt we want to touch any of the register local variables in s_lock.h or arch-x86.h, because they're all associated with asm sections that require them to be registers anyway. And ppport.h is not ours to change. I have no objection to getting rid of the ones in regexec.c or md5.c, though. regards, tom lane