mirror of
https://github.com/postgres/postgres.git
synced 2026-02-26 03:11:02 -05:00
Remove unused variable in non-assert-enabled build
Use field of structure in Assert directly Jeff Janes
This commit is contained in:
parent
2fa55f26a0
commit
34602b0a1d
1 changed files with 2 additions and 3 deletions
|
|
@ -459,11 +459,10 @@ index_truncate_tuple(TupleDesc tupleDescriptor, IndexTuple olditup,
|
|||
Datum values[INDEX_MAX_KEYS];
|
||||
bool isnull[INDEX_MAX_KEYS];
|
||||
IndexTuple newitup;
|
||||
int indnatts = tupleDescriptor->natts;
|
||||
|
||||
Assert(indnatts <= INDEX_MAX_KEYS);
|
||||
Assert(tupleDescriptor->natts <= INDEX_MAX_KEYS);
|
||||
Assert(new_indnatts > 0);
|
||||
Assert(new_indnatts < indnatts);
|
||||
Assert(new_indnatts < tupleDescriptor->natts);
|
||||
|
||||
index_deform_tuple(olditup, tupleDescriptor, values, isnull);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue