summaryrefslogtreecommitdiff
path: root/storage/oqgraph
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/oqgraph
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/oqgraph')
-rw-r--r--storage/oqgraph/ha_oqgraph.cc2
1 files changed, 1 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;
}