diff options
author | Michael Widenius <monty@mariadb.org> | 2014-09-30 20:12:59 +0300 |
---|---|---|
committer | Michael Widenius <monty@mariadb.org> | 2014-09-30 20:12:59 +0300 |
commit | caca6b99077718f7ed94ce04ed975dbda427ec7d (patch) | |
tree | c419c504a4c0edd5c5004b9ed8efe70a588e34c0 /storage/oqgraph | |
parent | 4630732f258e7ea4db47b0be58c8904d50a21e67 (diff) | |
download | mariadb-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.cc | 2 |
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; } |