summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-02-08 11:40:55 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-02-08 11:40:55 +0200
commit6eed99f1f3ade51d54659925d3e16eeed4af76e6 (patch)
tree9dba97602f093ac1a90b6cdd072b8d7b10822837
parent35c277851972267d4d020126ab8f893c4b17dd36 (diff)
downloadmariadb-git-6eed99f1f3ade51d54659925d3e16eeed4af76e6.tar.gz
MDEV-21248: Do not break the build on clang
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
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