1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-31 00:03:08 +03:00

tidy-up: prefer #ifdef / #ifndef (formatting)

Closes #1532
This commit is contained in:
Viktor Szakats
2025-01-31 12:01:51 +01:00
parent 784446b6c5
commit 5cca650b1d
8 changed files with 15 additions and 15 deletions

View File

@ -347,13 +347,13 @@ int main(int argc, char *argv[])
libssh2_trace(session, LIBSSH2_TRACE_CONN);
/* Set X11 Callback */
#if defined(__clang__)
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-function-type"
#endif
libssh2_session_callback_set2(session, LIBSSH2_CALLBACK_X11,
(libssh2_cb_generic *)x11_callback);
#if defined(__clang__)
#ifdef __clang__
#pragma clang diagnostic pop
#endif