Skip to content

Commit 2c03640

Browse files
authored
Fix return of pgws_ExecutorStart since some systems gave warnings when returning from void functions
2 parents 3c1046c + 24b2d14 commit 2c03640

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pg_wait_sampling.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,9 +995,17 @@ pgws_ExecutorStart(QueryDesc *queryDesc, int eflags)
995995
if (pgws_enabled(nesting_level))
996996
pgws_proc_queryids[i] = queryDesc->plannedstmt->queryId;
997997
if (prev_ExecutorStart)
998+
#if PG_VERSION_NUM >= 180000
998999
return prev_ExecutorStart(queryDesc, eflags);
1000+
#else
1001+
prev_ExecutorStart(queryDesc, eflags);
1002+
#endif
9991003
else
1004+
#if PG_VERSION_NUM >= 180000
10001005
return standard_ExecutorStart(queryDesc, eflags);
1006+
#else
1007+
standard_ExecutorStart(queryDesc, eflags);
1008+
#endif
10011009
}
10021010

10031011
static void

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy