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.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-11-18 14:17:52 -02:00
parent c0f84d190f
commit dc3da201fd
2 changed files with 8 additions and 0 deletions

View File

@ -388,6 +388,8 @@ _efl_net_server_fd_reuse_port_set(Eo *o, Efl_Net_Server_Fd_Data *pd, Eina_Bool r
pd->reuse_port = old;
return EINA_FALSE;
}
#else
(void)o;
#endif
return EINA_TRUE;
@ -416,6 +418,8 @@ _efl_net_server_fd_reuse_port_get(Eo *o, Efl_Net_Server_Fd_Data *pd)
}
pd->reuse_port = !!value; /* sync */
#else
(void)o;
#endif
return pd->reuse_port;

View File

@ -417,6 +417,8 @@ _efl_net_socket_udp_reuse_port_set(Eo *o, Efl_Net_Socket_Udp_Data *pd, Eina_Bool
pd->reuse_port = old;
return EINA_FALSE;
}
#else
(void)o;
#endif
return EINA_TRUE;
@ -445,6 +447,8 @@ _efl_net_socket_udp_reuse_port_get(Eo *o, Efl_Net_Socket_Udp_Data *pd)
}
pd->reuse_port = !!value; /* sync */
#else
(void)o;
#endif
return pd->reuse_port;