1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

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
This commit is contained in:
Andres Freund
2022-09-24 12:01:06 -07:00
parent eef63941c1
commit 03bf971d2d
4 changed files with 10 additions and 12 deletions

View File

@ -192,7 +192,7 @@ pg_regexec(regex_t *re,
int flags)
{
struct vars var;
register struct vars *v = &var;
struct vars *v = &var;
int st;
size_t n;
size_t i;