Commit 664ac33b authored by Niels Möller's avatar Niels Möller
Browse files

Fix a few warnings.

parent 5c7de483
2021-01-27 Niels Möller <>
* src/lshd.c (lshd_port_accept): Fix unused argument warnings.
* src/list.c (lsh_list_alloc): Fix warning about statement with no effect.
* (CFLAGS): Disable gcc pointer signedness warnings.
* src/atoms.c (gperf_atom): Change length type to size_t, for
......@@ -51,7 +51,7 @@ lsh_list_alloc(struct lsh_class *class,
+ element_size * length
- element_size);
CHECK_SUBTYPE(list_header, list);
(void) CHECK_SUBTYPE(list_header, list);
list->length = length;
......@@ -309,7 +309,7 @@ lshd_packet_handler(struct transport_connection *connection,
static void
lshd_port_accept(struct io_listen_port *s,
int fd,
socklen_t addr_len, const struct sockaddr *addr)
socklen_t addr_len UNUSED, const struct sockaddr *addr UNUSED)
CAST(lshd_port, self, s);
struct transport_forward *connection;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment