Details
Description
Now that MDEV-26272 was finally fixed, I thought that I would give clang-16 a try with cmake -DWITH_UBSAN=ON. One of the many errors (a function pointer type mismatch) would be fixed by the following:
diff --git a/sql/wsrep_plugin.cc b/sql/wsrep_plugin.cc
|
index 743b8a593b8..3fa5f7b7ef4 100644
|
--- a/sql/wsrep_plugin.cc
|
+++ b/sql/wsrep_plugin.cc
|
@@ -18,18 +18,6 @@
|
|
#include <mysql/plugin.h>
|
|
-static int wsrep_plugin_init(void *p)
|
-{
|
- WSREP_DEBUG("wsrep_plugin_init()");
|
- return 0;
|
-}
|
-
|
-static int wsrep_plugin_deinit(void *p)
|
-{
|
- WSREP_DEBUG("wsrep_plugin_deinit()");
|
- return 0;
|
-}
|
-
|
struct Mysql_replication wsrep_plugin= {
|
MYSQL_REPLICATION_INTERFACE_VERSION
|
};
|
@@ -42,8 +30,8 @@ maria_declare_plugin(wsrep)
|
"Codership Oy",
|
"Wsrep replication plugin",
|
PLUGIN_LICENSE_GPL,
|
- wsrep_plugin_init,
|
- wsrep_plugin_deinit,
|
+ NULL,
|
+ NULL,
|
0x0100,
|
NULL, /* Status variables */
|
NULL, /* System variables */ |
Attachments
Issue Links
- blocks
-
MDEV-33160 show_status_array() calls various functions via incompatible pointer
- Closed
- is blocked by
-
MDEV-26272 The macro MASTER_INFO_VAR invokes undefined behaviour
- Closed
- relates to
-
MDEV-25454 Make MariaDB server UBSAN safe
- Confirmed