You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
fix compilation errors with -flto
declare plugin structures using their correct type. Fixes errors like ./libmariadb/libmariadb/ma_client_plugin.c:86:39: error: type of ‘pvio_socket_client_plugin’ does not match original declaration [-Werror=lto-type-mismatch] ./libmariadb/plugins/pvio/pvio_socket.c:141:21: note: type ‘struct MARIADB_PVIO_PLUGIN’ should match type ‘struct st_mysql_client_plugin’ Approved by: Georg Richter <georg@mariadb.com>
This commit is contained in:
@@ -44,7 +44,7 @@ FUNCTION(REGISTER_PLUGIN)
|
||||
endif()
|
||||
|
||||
if(NOT ${CC_PLUGIN_DEFAULT} STREQUAL "OFF")
|
||||
set(PLUGIN_${CC_PLUGIN_TARGET}_TYPE ${CC_PLUGIN_TYPE})
|
||||
set(PLUGIN_${CC_PLUGIN_TARGET}_TYPE ${CC_PLUGIN_TYPE} PARENT_SCOPE)
|
||||
|
||||
if(${CC_PLUGIN_DEFAULT} MATCHES "DYNAMIC")
|
||||
|
||||
|
Reference in New Issue
Block a user