[Commits] Rev 4422: MDEV-7435 Windows debug: Run-Time Check Failure #3 - The variable 'unused' is being used without being initialized. in file:///home/hf/wmar/mdev-7435/

holyfoot at askmonty.org holyfoot at askmonty.org
Fri Feb 6 15:07:21 EET 2015


At file:///home/hf/wmar/mdev-7435/

------------------------------------------------------------
revno: 4422
revision-id: holyfoot at askmonty.org-20150206114945-tcl72jxm5lenm0cd
parent: jplindst at mariadb.org-20150204145029-xq8tq2d16u3l467u
committer: Alexey Botchkov <holyfoot at askmonty.org>
branch nick: mdev-7435
timestamp: Fri 2015-02-06 15:49:45 +0400
message:
  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.
-------------- next part --------------
=== modified file 'sql-common/client_plugin.c'
--- a/sql-common/client_plugin.c	2014-12-19 19:17:59 +0000
+++ b/sql-common/client_plugin.c	2015-02-06 11:49:45 +0000
@@ -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>



More information about the commits mailing list