Pass NULL instead of InvalidOid for pointer argument
MetaTrackAddUpdInternal() takes a HeapTuple as argument, which in turn is defined as a pointer to a HeapTupleData structure. Pass NULL rather than InvalidOid as that gets treated as a null pointer constant causing a compiler warning: heap.c:750:13: warning: expression which evaluates to zero treated as a null pointer constant of type 'HeapTuple' (aka 'struct HeapTupleData *') [-Wnon-literal-null-conversion]
Showing
想要评论请 注册 或 登录