From cf01554b019886d4a62f480dcfda4df3a580fa6e Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Fri, 13 Sep 2024 10:36:39 +0300 Subject: [PATCH] Add static decoration to avoid error: "no previous extern declaration for non-static variable [-Wmissing-variable-declarations]" in clang-17 build. Anton A. Melnikov --- plantuner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantuner.c b/plantuner.c index e454698..0148a75 100644 --- a/plantuner.c +++ b/plantuner.c @@ -69,7 +69,7 @@ static int nOnlyIndexes = 0; static Oid *onlyIndexes = NULL; static char *onlyIndexesOutStr = ""; -get_relation_info_hook_type prevHook = NULL; +static get_relation_info_hook_type prevHook = NULL; static bool fix_empty_table = false; static bool plantuner_enable_inited = false; -- 2.46.1