mirror of
https://github.com/postgres/postgres.git
synced 2026-06-11 01:30:11 -04:00
Replace deprecated StaticAssertStmt() with StaticAssertDecl()
Commit6f5ad00ab7added another use of StaticAssertStmt(), but it was marked as deprecated in commitd50c86e743. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/adeNWH5pDawDvvR2@ip-10-97-1-34.eu-west-3.compute.internal
This commit is contained in:
parent
fce3f7d267
commit
66ad764c8d
1 changed files with 5 additions and 2 deletions
|
|
@ -534,8 +534,11 @@ ginExtractEntries(GinState *ginstate, OffsetNumber attnum,
|
|||
/*
|
||||
* Create GinNullCategory representation.
|
||||
*/
|
||||
StaticAssertStmt(GIN_CAT_NORM_KEY == 0, "Assuming GIN_CAT_NORM_KEY=0");
|
||||
categories = palloc0_array(GinNullCategory, nentries + (hasNull ? 1 : 0));
|
||||
{
|
||||
/* palloc0 sets all entries to GIN_CAT_NORM_KEY */
|
||||
StaticAssertDecl(GIN_CAT_NORM_KEY == 0, "Assuming GIN_CAT_NORM_KEY == 0");
|
||||
categories = palloc0_array(GinNullCategory, nentries + (hasNull ? 1 : 0));
|
||||
}
|
||||
|
||||
/* Put back a NULL entry, if there were any */
|
||||
if (hasNull)
|
||||
|
|
|
|||
Loading…
Reference in a new issue