mirror of
https://github.com/MariaDB/server.git
synced 2025-05-11 13:21:44 +03:00
workaround for gcc 2.95.3 bug
anybody knows how to distinguish 2.95.3 from 2.95.4 (which is ok) ?
This commit is contained in:
parent
04bd8c9a44
commit
b511996ff4
@ -716,6 +716,9 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use,
|
|||||||
key++,idx++)
|
key++,idx++)
|
||||||
{
|
{
|
||||||
ha_rows found_records;
|
ha_rows found_records;
|
||||||
|
#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ == 95) && defined(__OPTIMIZE__)
|
||||||
|
volatile // gcc 2.95.3 bug in -O3 mode
|
||||||
|
#endif
|
||||||
double found_read_time;
|
double found_read_time;
|
||||||
if (*key)
|
if (*key)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user