pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Fix incidental warnings from cpluspluscheck.
Date: Sun, 18 Aug 2019 20:41:12 -0400
Message-ID: <14374.1566175272@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGLd9pna16OET2xyS98HwqL6rMCbyY-sB0SGTqVxwniDOA@mail.gmail.com>
References: <E1hzUBM-0002Tc-3O@gemulon.postgresql.org>
	<CA+hUKGLd9pna16OET2xyS98HwqL6rMCbyY-sB0SGTqVxwniDOA@mail.gmail.com>

Thomas Munro <thomas.munro@gmail.com> writes:
> On Mon, Aug 19, 2019 at 11:01 AM Tom Lane <tgl@sss.pgh.pa.us> 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





view thread (3+ messages)

Message-ID: <14374.1566175272@sss.pgh.pa.us>
Permalink:  ../14374.1566175272@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14374.1566175272@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com
  Subject: Re: pgsql: Fix incidental warnings from cpluspluscheck.
  In-Reply-To: <14374.1566175272@sss.pgh.pa.us>
  References: <E1hzUBM-0002Tc-3O@gemulon.postgresql.org> <CA+hUKGLd9pna16OET2xyS98HwqL6rMCbyY-sB0SGTqVxwniDOA@mail.gmail.com> <14374.1566175272@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox