From: Teodor Sigaev Date: Fri, 13 Sep 2024 07:36:39 +0000 (+0300) Subject: Add static decoration to avoid error: "no X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=cf01554b019886d4a62f480dcfda4df3a580fa6e;p=plantuner.git Add static decoration to avoid error: "no previous extern declaration for non-static variable [-Wmissing-variable-declarations]" in clang-17 build. Anton A. Melnikov --- 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;