aboutsummaryrefslogtreecommitdiff
path: root/plugins/simtech/mm-plugin-simtech.c
diff options
context:
space:
mode:
authorTing-Yuan Huang <laszio@chromium.org>2016-05-14 15:25:32 +0800
committerAleksander Morgado <aleksander@aleksander.es>2016-05-28 13:59:54 +0200
commit969189d42cc88bce9bdd6fb5e387352a02f81f2a (patch)
tree292eb4047d8b3c41d94283d56f29d1bda2bac0b4 /plugins/simtech/mm-plugin-simtech.c
parent55f3ab80835114342618083664c4fa585455b9e0 (diff)
plugin-manager: protect mm_plugin_{major,minor}_version
This patch makes declarations bind to definitions within the same module to prevent the potential ambiguity if referenced directly. AddressSanitizer think they violated one definition rule, although those symbols are accessed by address through their modules and do not depend on the order of the libararies loaded.
Diffstat (limited to 'plugins/simtech/mm-plugin-simtech.c')
-rw-r--r--plugins/simtech/mm-plugin-simtech.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/simtech/mm-plugin-simtech.c b/plugins/simtech/mm-plugin-simtech.c
index a38942d3..fcaa2507 100644
--- a/plugins/simtech/mm-plugin-simtech.c
+++ b/plugins/simtech/mm-plugin-simtech.c
@@ -27,8 +27,8 @@
G_DEFINE_TYPE (MMPluginSimtech, mm_plugin_simtech, MM_TYPE_PLUGIN)
-int mm_plugin_major_version = MM_PLUGIN_MAJOR_VERSION;
-int mm_plugin_minor_version = MM_PLUGIN_MINOR_VERSION;
+MM_PLUGIN_DEFINE_MAJOR_VERSION
+MM_PLUGIN_DEFINE_MINOR_VERSION
/*****************************************************************************/