1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fix a compiler warning on sparc32

This commit is contained in:
Sergey Petrunya
2010-12-17 14:58:08 +03:00
parent 80cbf3a1c2
commit 81eb82b47d

View File

@@ -252,7 +252,14 @@ int handler::multi_range_read_next(char **range_info)
else else
{ {
if (was_semi_consistent_read()) 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; goto scan_it_again;
}
/* /*
We need to set this for the last range only, but checking this We need to set this for the last range only, but checking this
condition is more expensive than just setting the result code. condition is more expensive than just setting the result code.