summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-18 14:17:52 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-18 14:21:21 -0200
commitdc3da201fd3cbc8b681be5c78a359da897df20de (patch)
treeefd0c66b61f18fe4902e18bad9cbb5c8f7ef6403
parentc0f84d190fb23756987ab7e276cd9fd3b5be5f09 (diff)
efl_net: remove warnings related to unused parameters.
if these options are not available, then cast "o" to void so it doesn't trigger a warning, for example on Windows.
-rw-r--r--src/lib/ecore_con/efl_net_server_fd.c4
-rw-r--r--src/lib/ecore_con/efl_net_socket_udp.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_con/efl_net_server_fd.c b/src/lib/ecore_con/efl_net_server_fd.c
index c771e9dcf5..7f0dfbb554 100644
--- a/src/lib/ecore_con/efl_net_server_fd.c
+++ b/src/lib/ecore_con/efl_net_server_fd.c
@@ -388,6 +388,8 @@ _efl_net_server_fd_reuse_port_set(Eo *o, Efl_Net_Server_Fd_Data *pd, Eina_Bool r
388 pd->reuse_port = old; 388 pd->reuse_port = old;
389 return EINA_FALSE; 389 return EINA_FALSE;
390 } 390 }
391#else
392 (void)o;
391#endif 393#endif
392 394
393 return EINA_TRUE; 395 return EINA_TRUE;
@@ -416,6 +418,8 @@ _efl_net_server_fd_reuse_port_get(Eo *o, Efl_Net_Server_Fd_Data *pd)
416 } 418 }
417 419
418 pd->reuse_port = !!value; /* sync */ 420 pd->reuse_port = !!value; /* sync */
421#else
422 (void)o;
419#endif 423#endif
420 424
421 return pd->reuse_port; 425 return pd->reuse_port;
diff --git a/src/lib/ecore_con/efl_net_socket_udp.c b/src/lib/ecore_con/efl_net_socket_udp.c
index 4e610f9560..b534a90dd8 100644
--- a/src/lib/ecore_con/efl_net_socket_udp.c
+++ b/src/lib/ecore_con/efl_net_socket_udp.c
@@ -417,6 +417,8 @@ _efl_net_socket_udp_reuse_port_set(Eo *o, Efl_Net_Socket_Udp_Data *pd, Eina_Bool
417 pd->reuse_port = old; 417 pd->reuse_port = old;
418 return EINA_FALSE; 418 return EINA_FALSE;
419 } 419 }
420#else
421 (void)o;
420#endif 422#endif
421 423
422 return EINA_TRUE; 424 return EINA_TRUE;
@@ -445,6 +447,8 @@ _efl_net_socket_udp_reuse_port_get(Eo *o, Efl_Net_Socket_Udp_Data *pd)
445 } 447 }
446 448
447 pd->reuse_port = !!value; /* sync */ 449 pd->reuse_port = !!value; /* sync */
450#else
451 (void)o;
448#endif 452#endif
449 453
450 return pd->reuse_port; 454 return pd->reuse_port;