From 0f4837aa2138decdd6690dd5e0a95e9360367ac6 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Fri, 24 Jul 2015 13:34:22 -0700 Subject: [PATCH] Fixed warning on Mac 10.6 #4866 --- src/lib/common/PluginVersion.cpp | 2 ++ src/lib/common/PluginVersion.h | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/common/PluginVersion.cpp b/src/lib/common/PluginVersion.cpp index 656b80fc..1885d2a1 100644 --- a/src/lib/common/PluginVersion.cpp +++ b/src/lib/common/PluginVersion.cpp @@ -20,6 +20,8 @@ #include static const char kUnknownVersion[] = "unknown"; +const char* s_pluginNames[] = { "ns" }; +static const char* s_pluginVersions[] = { "1.2" }; const char* getExpectedPluginVersion(const char* name) { diff --git a/src/lib/common/PluginVersion.h b/src/lib/common/PluginVersion.h index 02839ef6..c0b2d0d7 100644 --- a/src/lib/common/PluginVersion.h +++ b/src/lib/common/PluginVersion.h @@ -22,9 +22,7 @@ enum EPluginType { kPluginCount }; -static const char* s_pluginNames[] = { "ns" }; -static const char* s_pluginVersions[] = { "1.2" }; - +extern const char* s_pluginNames[]; //! Get expected plugin version /*!