mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-20 02:42:09 +03:00
session: ignore pedantic warnings for funcpointer <=> void *
This commit is contained in:
@@ -510,9 +510,11 @@ libssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)),
|
|||||||
* Set (or reset) a callback function
|
* Set (or reset) a callback function
|
||||||
* Returns the prior address
|
* Returns the prior address
|
||||||
*
|
*
|
||||||
* FIXME: this function relies on that we can typecast function pointers
|
* ALERT: this function relies on that we can typecast function pointers
|
||||||
* to void pointers, which isn't allowed in ISO C!
|
* to void pointers, which isn't allowed in ISO C!
|
||||||
*/
|
*/
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
LIBSSH2_API void *
|
LIBSSH2_API void *
|
||||||
libssh2_session_callback_set(LIBSSH2_SESSION * session,
|
libssh2_session_callback_set(LIBSSH2_SESSION * session,
|
||||||
int cbtype, void *callback)
|
int cbtype, void *callback)
|
||||||
@@ -559,6 +561,7 @@ libssh2_session_callback_set(LIBSSH2_SESSION * session,
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _libssh2_wait_socket()
|
* _libssh2_wait_socket()
|
||||||
|
|||||||
Reference in New Issue
Block a user