summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2014-09-30 20:12:59 +0300
committerMichael Widenius <monty@mariadb.org>2014-09-30 20:12:59 +0300
commitcaca6b99077718f7ed94ce04ed975dbda427ec7d (patch)
treec419c504a4c0edd5c5004b9ed8efe70a588e34c0 /storage
parent4630732f258e7ea4db47b0be58c8904d50a21e67 (diff)
downloadmariadb-git-caca6b99077718f7ed94ce04ed975dbda427ec7d.tar.gz
Fixed warnings
storage/oqgraph/ha_oqgraph.cc: Fixed compiler warning storage/xtradb/handler/ha_innodb.cc: Ifdef:ed note used function
Diffstat (limited to 'storage')
-rw-r--r--storage/oqgraph/ha_oqgraph.cc2
-rw-r--r--storage/xtradb/handler/ha_innodb.cc4
2 files changed, 5 insertions, 1 deletions
diff --git a/storage/oqgraph/ha_oqgraph.cc b/storage/oqgraph/ha_oqgraph.cc
index 085fd3d73a0..b6096b30b11 100644
--- a/storage/oqgraph/ha_oqgraph.cc
+++ b/storage/oqgraph/ha_oqgraph.cc
@@ -859,7 +859,7 @@ static int parse_latch_string_to_legacy_int(const String& value, int &latch)
unsigned long int v = strtoul( latchValue.c_ptr_safe(), &eptr, 10);
if (!*eptr) {
// we had an unsigned number; remember 0 is valid too ('vertices' aka 'no_search'))
- if (v >= 0 && v < oqgraph::NUM_SEARCH_OP) {
+ if (v < oqgraph::NUM_SEARCH_OP) {
latch = v;
return true;
}
diff --git a/storage/xtradb/handler/ha_innodb.cc b/storage/xtradb/handler/ha_innodb.cc
index 020d94f0f60..d91cc962b43 100644
--- a/storage/xtradb/handler/ha_innodb.cc
+++ b/storage/xtradb/handler/ha_innodb.cc
@@ -1179,6 +1179,7 @@ innobase_start_trx_and_assign_read_view(
THD* thd); /* in: MySQL thread handle of the
user for whom the transaction should
be committed */
+#ifdef NOT_USED
/*****************************************************************//**
Creates an InnoDB transaction struct for the thd if it does not yet have one.
Starts a new InnoDB transaction if a transaction is not yet started. And
@@ -1195,6 +1196,7 @@ innobase_start_trx_and_clone_read_view(
THD* from_thd); /* in: MySQL thread handle of the
user session from which the consistent
read should be cloned */
+#endif
/****************************************************************//**
Flushes InnoDB logs to disk and makes a checkpoint. Really, a commit flushes
the logs, and the name of this function should be innobase_checkpoint.
@@ -4127,6 +4129,7 @@ innobase_commit_ordered(
DBUG_VOID_RETURN;
}
+#ifdef NOT_USED
/*****************************************************************//**
Creates an InnoDB transaction struct for the thd if it does not yet have one.
Starts a new InnoDB transaction if a transaction is not yet started. And
@@ -4222,6 +4225,7 @@ innobase_start_trx_and_clone_read_view(
DBUG_RETURN(0);
}
+#endif
/*****************************************************************//**
Commits a transaction in an InnoDB database or marks an SQL statement