#At file:///export/home/didrik/repo/5.5-bugteam/ based on revid:horst.hunger@stripped
3269 Tor Didriksen 2010-10-25
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.
modified:
sql/sql_lex.h
=== modified file 'sql/sql_lex.h'
--- a/sql/sql_lex.h 2010-10-06 14:34:28 +0000
+++ b/sql/sql_lex.h 2010-10-25 15:08:27 +0000
@@ -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
Attachment: [text/bzr-bundle] bzr/tor.didriksen@oracle.com-20101025150827-c3ugwli8504k0d5g.bundle
| Thread |
|---|
| • bzr commit into mysql-5.5-bugteam branch (tor.didriksen:3269) Bug#45288 | Tor Didriksen | 25 Oct |