summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>