diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 6f3c076709a..a586dd9107c 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -7394,7 +7394,7 @@ long max_stack_used; */ bool -#ifdef __GNUC__ +#if defined __GNUC__ && !defined __clang__ /* Do not optimize the function in order to preserve a stack variable creation. Otherwise, the variable pointed as "buf" can be removed due to a missing