summaryrefslogtreecommitdiff
path: root/sql-common/client_plugin.c
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-03-29 19:15:44 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2011-03-29 19:15:44 +0200
commit2c0e356ae8a2265740de0540a8d76688025c3672 (patch)
treed3af96ae0548bb4865d6f2e8f68179198909f5a2 /sql-common/client_plugin.c
parentc0577f6798f948138fadcc3195640adfd5ec4d92 (diff)
downloadmariadb-git-2c0e356ae8a2265740de0540a8d76688025c3672.tar.gz
fix VS warning about variable 'unused' being used
Diffstat (limited to 'sql-common/client_plugin.c')
-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 f33662bb222..0b1bdeae0be 100644
--- a/sql-common/client_plugin.c
+++ b/sql-common/client_plugin.c
@@ -27,6 +27,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>