Add static decoration to avoid error: "no master
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 13 Sep 2024 07:36:39 +0000 (10:36 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 13 Sep 2024 07:36:39 +0000 (10:36 +0300)
 previous extern declaration for non-static variable
  [-Wmissing-variable-declarations]" in clang-17 build.

Anton A. Melnikov <a.melnikov@postgrespro.ru>

plantuner.c

index e454698..0148a75 100644 (file)
@@ -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;