From 969189d42cc88bce9bdd6fb5e387352a02f81f2a Mon Sep 17 00:00:00 2001 From: Ting-Yuan Huang Date: Sat, 14 May 2016 15:25:32 +0800 Subject: 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. --- plugins/pantech/mm-plugin-pantech.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/pantech') diff --git a/plugins/pantech/mm-plugin-pantech.c b/plugins/pantech/mm-plugin-pantech.c index 788a45d0..b7b1791d 100644 --- a/plugins/pantech/mm-plugin-pantech.c +++ b/plugins/pantech/mm-plugin-pantech.c @@ -29,8 +29,8 @@ G_DEFINE_TYPE (MMPluginPantech, mm_plugin_pantech, 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 /*****************************************************************************/ /* Custom commands for AT probing -- cgit v1.2.3