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:
@ -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;
|
||||
|
Reference in New Issue
Block a user