summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2010-10-25 17:08:27 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2010-10-25 17:08:27 +0200
commite6ae473bca500651db056d6e53b846b61f9f6a10 (patch)
treef3b4f45875ed9ce098b56d98c2052047b19b4eda /sql/sql_lex.h
parent1eb1bea003f0966a08852668133981691e017f26 (diff)
downloadmariadb-git-e6ae473bca500651db056d6e53b846b61f9f6a10.tar.gz
Bug#45288: pb2 returns a lot of compilation warnings
sql/sql_lex.h:1437: warning: control reaches end of non-void function
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 0f93275434d..c20c2f0bca2 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -1389,6 +1389,7 @@ public:
STMT_ACCESS_TABLE_COUNT
};
+#ifndef DBUG_OFF
static inline const char *stmt_accessed_table_string(enum_stmt_accessed_table accessed_table)
{
switch (accessed_table)
@@ -1422,7 +1423,10 @@ public:
DBUG_ASSERT(0);
break;
}
+ MY_ASSERT_UNREACHABLE();
+ return "";
}
+#endif /* DBUG */
#define BINLOG_DIRECT_ON 0xF0 /* unsafe when
--binlog-direct-non-trans-updates