summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2015-02-06 15:49:45 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2015-02-06 15:49:45 +0400
commitb9d616c243972afb7bb5169d5136ed451ab7cd31 (patch)
treef3f05780dc57d13df6f312af91624a7ca7f4d40d /sql-common
parent5c6eb5222ec12fe38095b2e69d1b4732b04e3a3e (diff)
downloadmariadb-git-b9d616c243972afb7bb5169d5136ed451ab7cd31.tar.gz
MDEV-7435 Windows debug: Run-Time Check Failure #3 - The variable 'unused' is being used without being initialized.
Fixed as it's done in 10.0.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client_plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql-common/client_plugin.c b/sql-common/client_plugin.c
index d96f9648011..f31ddb22a6a 100644
--- a/sql-common/client_plugin.c
+++ b/sql-common/client_plugin.c
@@ -28,6 +28,11 @@
There is no reference counting and no unloading either.
*/
+#if _MSC_VER
+/* Silence warnings about variable 'unused' being used. */
+#define FORCE_INIT_OF_VARS 1
+#endif
+
#include <my_global.h>
#include "mysql.h"
#include <my_sys.h>