mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Fix incidental warnings from cpluspluscheck.
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. Also fix one cosmetic warning about signed vs unsigned comparison. Discussion: https://postgr.es/m/20518.1559494394@sss.pgh.pa.us
This commit is contained in:
@@ -126,7 +126,7 @@ struct ExpandedObjectHeader
|
||||
*/
|
||||
#define EOH_HEADER_MAGIC (-1)
|
||||
#define VARATT_IS_EXPANDED_HEADER(PTR) \
|
||||
(((varattrib_4b *) (PTR))->va_4byte.va_header == EOH_HEADER_MAGIC)
|
||||
(((varattrib_4b *) (PTR))->va_4byte.va_header == (uint32) EOH_HEADER_MAGIC)
|
||||
|
||||
/*
|
||||
* Generic support functions for expanded objects.
|
||||
|
||||
Reference in New Issue
Block a user