pgsql: Remove uses of register due to incompatibility with C++17 and up

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove uses of register due to incompatibility with C++17 and up
Date: 2022-09-24 20:51:30
Message-ID: E1ocC7V-001qnY-MY@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove uses of register due to incompatibility with C++17 and up

The use in regexec.c could remain, since we only try to keep headers C++
clean. But there really doesn't seem to be a good reason to use register in
that spot.

Discussion: https://postgr.es/m/20220308185902.ibdqmasoaunzjrfc@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/03bf971d2dc701d473705fd00891028d140dd5ae

Modified Files
--------------
.cirrus.yml | 4 +---
src/backend/regex/regexec.c | 2 +-
src/include/port/atomics/arch-x86.h | 2 +-
src/include/storage/s_lock.h | 14 +++++++-------
4 files changed, 10 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-09-24 22:29:27 pgsql: Add read support for some missing raw parse nodes
Previous Message Andres Freund 2022-09-24 19:06:16 pgsql: meson: Remove non-binary targets accidentally added to bin_targe