diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2010-12-17 14:58:08 +0300 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2010-12-17 14:58:08 +0300 |
commit | 81eb82b47d015ca1a5bcca35e7569c665332ac31 (patch) | |
tree | 6b755589a72afcca104f6286663f56054f8864cb /sql/multi_range_read.cc | |
parent | 80cbf3a1c22e6ac854329fa7d61868e5be96f8ce (diff) | |
download | mariadb-git-81eb82b47d015ca1a5bcca35e7569c665332ac31.tar.gz |
Fix a compiler warning on sparc32
Diffstat (limited to 'sql/multi_range_read.cc')
-rw-r--r-- | sql/multi_range_read.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/multi_range_read.cc b/sql/multi_range_read.cc index 060aac2d7ba..0100cbcb9d5 100644 --- a/sql/multi_range_read.cc +++ b/sql/multi_range_read.cc @@ -252,7 +252,14 @@ int handler::multi_range_read_next(char **range_info) else { if (was_semi_consistent_read()) + { + /* + The following assignment is redundant, but for extra safety and to + remove the compiler warning: + */ + range_res= FALSE; goto scan_it_again; + } /* We need to set this for the last range only, but checking this condition is more expensive than just setting the result code. |