1 | *************** |
---|
2 | *** 325,336 **** |
---|
3 | libssh2_trace(session, LIBSSH2_TRACE_CONN); |
---|
4 | |
---|
5 | /* ignore pedantic warnings by gcc on the callback argument */ |
---|
6 | - #pragma GCC diagnostic push |
---|
7 | - #pragma GCC diagnostic ignored "-Wpedantic" |
---|
8 | /* Set X11 Callback */ |
---|
9 | libssh2_session_callback_set(session, LIBSSH2_CALLBACK_X11, |
---|
10 | (void *)x11_callback); |
---|
11 | - #pragma GCC diagnostic pop |
---|
12 | |
---|
13 | /* Authenticate via password */ |
---|
14 | rc = libssh2_userauth_password(session, username, password); |
---|
15 | --- 325,333 ---- |
---|
16 | libssh2_trace(session, LIBSSH2_TRACE_CONN); |
---|
17 | |
---|
18 | /* ignore pedantic warnings by gcc on the callback argument */ |
---|
19 | /* Set X11 Callback */ |
---|
20 | libssh2_session_callback_set(session, LIBSSH2_CALLBACK_X11, |
---|
21 | (void *)x11_callback); |
---|
22 | |
---|
23 | /* Authenticate via password */ |
---|
24 | rc = libssh2_userauth_password(session, username, password); |
---|