ExecSetupTransitionCaptureState not declared in nodeModifyTable.c

Started by jian heabout 2 years ago2 messages
#1jian he
jian.universality@gmail.com

hi.

static void
ExecSetupTransitionCaptureState(ModifyTableState *mtstate, EState *estate);

not declared in src/backend/executor/nodeModifyTable.c.
do we need to add the declaration?

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: jian he (#1)
Re: ExecSetupTransitionCaptureState not declared in nodeModifyTable.c

jian he <jian.universality@gmail.com> writes:

static void
ExecSetupTransitionCaptureState(ModifyTableState *mtstate, EState *estate);

not declared in src/backend/executor/nodeModifyTable.c.
do we need to add the declaration?

Not if the compiler's not complaining about it. We don't have a
policy requiring all static functions to be forward-declared.

regards, tom lane