diff --git a/src/ph_socket.c b/src/ph_socket.c index ad0964b..1224c15 100644 --- a/src/ph_socket.c +++ b/src/ph_socket.c @@ -32,8 +32,8 @@ #include "logging.h" #include "ph_socket.h" -int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int what); -int ph_socket_connect_cb(struct osmo_fd *ofd, unsigned int what); +int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int __attribute__((unused)) what); +int ph_socket_connect_cb(struct osmo_fd *ofd, unsigned int __attribute__((unused)) what); static void ph_socket_timeout_cb(void *data); static void open_connection(ph_socket_t *s) @@ -176,7 +176,7 @@ void ph_socket_exit(ph_socket_t *s) osmo_timer_del(&s->retry_timer); } -int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int what) +int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int __attribute__((unused)) what) { ph_socket_t *s = ofd->data; struct sockaddr_un sock_address; @@ -209,7 +209,7 @@ int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int what) return 0; } -int ph_socket_connect_cb(struct osmo_fd *ofd, unsigned int what) +int ph_socket_connect_cb(struct osmo_fd *ofd, unsigned __attribute__((unused)) int what) { ph_socket_t *s = ofd->data; int rc;