summaryrefslogtreecommitdiff
path: root/src/test/modules
diff options
context:
space:
mode:
authorAndres Freund2022-07-18 00:29:32 +0000
committerAndres Freund2022-07-18 00:29:32 +0000
commitfd4bad1655391582f639527c325fc4a99680cc64 (patch)
tree5e59a7fcf0bbe666e0d64532dc2fe57a0eade6b8 /src/test/modules
parentf2b73c8d75d583adcdd3562adca335d31f430ac5 (diff)
Remove now superfluous declarations of dlsym()ed symbols.
The prior commit declared them centrally. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/20211101020311.av6hphdl6xbjbuif@alap3.anarazel.de
Diffstat (limited to 'src/test/modules')
-rw-r--r--src/test/modules/delay_execution/delay_execution.c3
-rw-r--r--src/test/modules/dummy_index_am/dummy_index_am.c2
-rw-r--r--src/test/modules/dummy_seclabel/dummy_seclabel.c3
-rw-r--r--src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c2
-rw-r--r--src/test/modules/test_oat_hooks/test_oat_hooks.c2
-rw-r--r--src/test/modules/test_rls_hooks/test_rls_hooks.c2
-rw-r--r--src/test/modules/test_shm_mq/test.c2
-rw-r--r--src/test/modules/worker_spi/worker_spi.c1
8 files changed, 0 insertions, 17 deletions
diff --git a/src/test/modules/delay_execution/delay_execution.c b/src/test/modules/delay_execution/delay_execution.c
index 407ebc0edaf..756c161872c 100644
--- a/src/test/modules/delay_execution/delay_execution.c
+++ b/src/test/modules/delay_execution/delay_execution.c
@@ -36,9 +36,6 @@ static int post_planning_lock_id = 0;
/* Save previous planner hook user to be a good citizen */
static planner_hook_type prev_planner_hook = NULL;
-/* Module load function */
-void _PG_init(void);
-
/* planner_hook function to provide the desired delay */
static PlannedStmt *
diff --git a/src/test/modules/dummy_index_am/dummy_index_am.c b/src/test/modules/dummy_index_am/dummy_index_am.c
index a0894ff9860..67c30394c80 100644
--- a/src/test/modules/dummy_index_am/dummy_index_am.c
+++ b/src/test/modules/dummy_index_am/dummy_index_am.c
@@ -23,8 +23,6 @@
PG_MODULE_MAGIC;
-void _PG_init(void);
-
/* parse table for fillRelOptions */
relopt_parse_elt di_relopt_tab[6];
diff --git a/src/test/modules/dummy_seclabel/dummy_seclabel.c b/src/test/modules/dummy_seclabel/dummy_seclabel.c
index 67658c1e122..8b03dcd7545 100644
--- a/src/test/modules/dummy_seclabel/dummy_seclabel.c
+++ b/src/test/modules/dummy_seclabel/dummy_seclabel.c
@@ -19,9 +19,6 @@
PG_MODULE_MAGIC;
-/* Entrypoint of the module */
-void _PG_init(void);
-
PG_FUNCTION_INFO_V1(dummy_seclabel_dummy);
static void
diff --git a/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c b/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c
index e9f2329a5aa..948706af852 100644
--- a/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c
+++ b/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c
@@ -20,8 +20,6 @@
PG_MODULE_MAGIC;
-void _PG_init(void);
-
static char *ssl_passphrase = NULL;
/* callback function */
diff --git a/src/test/modules/test_oat_hooks/test_oat_hooks.c b/src/test/modules/test_oat_hooks/test_oat_hooks.c
index 900d597f5dd..8aa59bf18ad 100644
--- a/src/test/modules/test_oat_hooks/test_oat_hooks.c
+++ b/src/test/modules/test_oat_hooks/test_oat_hooks.c
@@ -69,8 +69,6 @@ static char *accesstype_to_string(ObjectAccessType access, int subId);
static char *accesstype_arg_to_string(ObjectAccessType access, void *arg);
-void _PG_init(void);
-
/*
* Module load callback
*/
diff --git a/src/test/modules/test_rls_hooks/test_rls_hooks.c b/src/test/modules/test_rls_hooks/test_rls_hooks.c
index fd2864130eb..496846d9f49 100644
--- a/src/test/modules/test_rls_hooks/test_rls_hooks.c
+++ b/src/test/modules/test_rls_hooks/test_rls_hooks.c
@@ -29,8 +29,6 @@
PG_MODULE_MAGIC;
-void _PG_init(void);
-
/* Install hooks */
void
_PG_init(void)
diff --git a/src/test/modules/test_shm_mq/test.c b/src/test/modules/test_shm_mq/test.c
index 5a788692d95..1d1c184d8ce 100644
--- a/src/test/modules/test_shm_mq/test.c
+++ b/src/test/modules/test_shm_mq/test.c
@@ -24,8 +24,6 @@ PG_MODULE_MAGIC;
PG_FUNCTION_INFO_V1(test_shm_mq);
PG_FUNCTION_INFO_V1(test_shm_mq_pipelined);
-void _PG_init(void);
-
static void verify_message(Size origlen, char *origdata, Size newlen,
char *newdata);
diff --git a/src/test/modules/worker_spi/worker_spi.c b/src/test/modules/worker_spi/worker_spi.c
index 5b541ec47f1..b37ef8beb60 100644
--- a/src/test/modules/worker_spi/worker_spi.c
+++ b/src/test/modules/worker_spi/worker_spi.c
@@ -46,7 +46,6 @@ PG_MODULE_MAGIC;
PG_FUNCTION_INFO_V1(worker_spi_launch);
-void _PG_init(void);
void worker_spi_main(Datum) pg_attribute_noreturn();
/* GUC variables */