File tree 1 file changed +10
-0
lines changed
plugin/group_replication/libmysqlgcs
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,16 @@ ADD_LIBRARY(mysqlgcs STATIC ${XCOM_SOURCES} ${GCS_SOURCES})
237
237
# but pick up symbols from the server:
238
238
# TARGET_LINK_LIBRARIES(mysqlgcs mysys)
239
239
240
+ # Lots of C-style casting in the interface to XDR functions.
241
+ # xcom_xdr_free((xdrproc_t)proc ...)
242
+ # xdr_free((xdrproc_t)xdr_app_data_ptr
243
+ # Add -Wno-cast-function-type-mismatch as a PUBLIC property,
244
+ # since we have header files calling xdr_free().
245
+ MY_CHECK_CXX_COMPILER_WARNING("-Wcast-function-type-mismatch" HAS_WARN_FLAG)
246
+ IF (HAS_WARN_FLAG)
247
+ TARGET_COMPILE_OPTIONS (mysqlgcs PUBLIC ${HAS_WARN_FLAG} )
248
+ ENDIF ()
249
+
240
250
IF (CMAKE_VERSION VERSION_GREATER "3.19" AND NOT APPLE_XCODE)
241
251
# New in version 3.19:
242
252
# An interface library target may be created with source files.
You can’t perform that action at this time.
0 commit comments