This is an automated email from the ASF dual-hosted git repository.

maxyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 112b2181bb1f4cf0fd811a7e2d60bf30ccb08ee7
Author: Junwang Zhao <[email protected]>
AuthorDate: Sat Aug 6 22:24:36 2022 +0800

    remove useless extern (#13896)
    
    I think the `extern` keyword tells the compiler that the function
    is defined somewhere else, since here for `RestoreOidAssignments`
    it is a definition, `extern` is useless, so remove it.
    
    Signed-off-by: Junwang Zhao <[email protected]>
---
 src/backend/catalog/oid_dispatch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/catalog/oid_dispatch.c 
b/src/backend/catalog/oid_dispatch.c
index 51a2b83bfe..72a3d3ce6f 100644
--- a/src/backend/catalog/oid_dispatch.c
+++ b/src/backend/catalog/oid_dispatch.c
@@ -202,7 +202,7 @@ ClearOidAssignmentsOnCommit(void)
        preserve_oids_on_commit = false;
 }
 
-extern void
+void
 RestoreOidAssignments(List *oid_assignments)
 {
        dispatch_oids = oid_assignments;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to