summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-03-16 21:34:03 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-03-16 21:34:03 -0300
commit7955bd43f271f1b3035c6b09f7b2ec0a2d3c4651 (patch)
tree11604fcf4f2dd7b92e0ac9ca9a385ef19ea0dd3c /sql/sql_base.cc
parent8347e1ea20303bb4a919a3ed4b16aab3c8f44fb5 (diff)
downloadmariadb-git-7955bd43f271f1b3035c6b09f7b2ec0a2d3c4651.tar.gz
Fix assorted compiler warnings.
sql/handler.cc: Initialize the "comment" member of the structure. sql/sql_base.cc: Compile out unused function. sql/sql_update.cc: Remove unused variable. sql/sys_vars.cc: Use correct format specifier.
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index a85a863abd9..fdcb215729c 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -729,6 +729,7 @@ TABLE_SHARE *get_cached_table_share(const char *db, const char *table_name)
}
+#ifdef DISABLED_UNTIL_GRL_IS_MADE_PART_OF_MDL
/**
@brief Mark table share as having one more user (increase its reference
count).
@@ -746,6 +747,7 @@ static void reference_table_share(TABLE_SHARE *share)
(ulong) share, share->ref_count));
DBUG_VOID_RETURN;
}
+#endif
/*