mirror of
https://github.com/postgres/postgres.git
synced 2026-03-10 02:01:23 -04:00
Silence compiler warning in Assert()
gcc 6.3 does not whine about this mistake I made in 39808e8868 but
evidently lots of other compilers do, according to Michael Paquier,
Peter Eisentraut, Arthur Zakirov, Tomas Vondra.
Discussion: too many to list
This commit is contained in:
parent
a2a5159ed6
commit
fd66ca083d
1 changed files with 1 additions and 1 deletions
|
|
@ -1765,7 +1765,7 @@ EventTriggerCollectAlterTableSubcmd(Node *subcmd, ObjectAddress address)
|
|||
return;
|
||||
|
||||
Assert(IsA(subcmd, AlterTableCmd));
|
||||
Assert(OidIsValid(currentEventTriggerState->currentCommand));
|
||||
Assert(currentEventTriggerState->currentCommand != NULL);
|
||||
Assert(OidIsValid(currentEventTriggerState->currentCommand->d.alterTable.objectId));
|
||||
|
||||
oldcxt = MemoryContextSwitchTo(currentEventTriggerState->cxt);
|
||||
|
|
|
|||
Loading…
Reference in a new issue