Commit 56f6599e authored by Tor Didriksen's avatar Tor Didriksen

Bug#45288: pb2 returns a lot of compilation warnings

sql/sql_lex.h:1437: warning: control reaches end of non-void function


sql/sql_lex.h:
  Make compiler happy, by adding a return statement.
parent 06a263e2
...@@ -1389,6 +1389,7 @@ public: ...@@ -1389,6 +1389,7 @@ public:
STMT_ACCESS_TABLE_COUNT STMT_ACCESS_TABLE_COUNT
}; };
#ifndef DBUG_OFF
static inline const char *stmt_accessed_table_string(enum_stmt_accessed_table accessed_table) static inline const char *stmt_accessed_table_string(enum_stmt_accessed_table accessed_table)
{ {
switch (accessed_table) switch (accessed_table)
...@@ -1422,7 +1423,10 @@ public: ...@@ -1422,7 +1423,10 @@ public:
DBUG_ASSERT(0); DBUG_ASSERT(0);
break; break;
} }
MY_ASSERT_UNREACHABLE();
return "";
} }
#endif /* DBUG */
#define BINLOG_DIRECT_ON 0xF0 /* unsafe when #define BINLOG_DIRECT_ON 0xF0 /* unsafe when
--binlog-direct-non-trans-updates --binlog-direct-non-trans-updates
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment