Hello,
I have this warning when I compile ecore
ecore_con_ssl.c: In function ‘_ecore_con_ssl_server_init_gnutls’:
ecore_con_ssl.c:552:48: warning: cast to pointer from integer of different size
ecore_con_ssl.c: In function ‘_ecore_con_ssl_client_init_gnutls’:
ecore_con_ssl.c:853:47: warning: cast to pointer from integer of different size
the guilty lines are
Index: ecore_con_ssl.c
===================================================================
--- ecore_con_ssl.c (revision 56898)
+++ ecore_con_ssl.c (working copy)
@@ -549,7 +549,7 @@
SSL_ERROR_CHECK_GOTO_ERROR(ret =
gnutls_credentials_set(svr->session, GNUTLS_CRD_ANON, svr->anoncred_c));
gnutls_dh_set_prime_bits(svr->session, 512);
- gnutls_transport_set_ptr(svr->session,
(gnutls_transport_ptr_t)svr->fd);
+ gnutls_transport_set_ptr(svr->session,
(gnutls_transport_ptr_t)&svr->fd);
svr->ssl_state = ECORE_CON_SSL_STATE_HANDSHAKING;
case ECORE_CON_SSL_STATE_HANDSHAKING:
@@ -850,7 +850,7 @@
gnutls_certificate_server_set_request(cl->session,
GNUTLS_CERT_REQUEST);
gnutls_dh_set_prime_bits(cl->session, 2048);
- gnutls_transport_set_ptr(cl->session, (gnutls_transport_ptr_t)cl->fd);
+ gnutls_transport_set_ptr(cl->session, (gnutls_transport_ptr_t)&cl->fd);
cl->ssl_state = ECORE_CON_SSL_STATE_HANDSHAKING;
case ECORE_CON_SSL_STATE_HANDSHAKING:
and the problem comes from the fact that fd variable is an int while the
function requires a pointer. The patch is straightforward but I do not know the
role of the fd variable. If one of you could indicate me its role here, I would
more than happy to send the patch.
Cheers
Mathieu
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel