diff --git a/iiod/iiod.c b/iiod/iiod.c index 1fc7227b3..4e2d822ac 100644 --- a/iiod/iiod.c +++ b/iiod/iiod.c @@ -179,7 +179,6 @@ int main(int argc, char **argv) int c, option_index = 0; char *ffs_mountpoint = NULL; char *uart_params = NULL; - char err_str[1024]; uint16_t port = IIOD_PORT; int ret, ep0_fd = 0; diff --git a/iiod/ops.c b/iiod/ops.c index f34414a72..8fcb5cba3 100644 --- a/iiod/ops.c +++ b/iiod/ops.c @@ -427,7 +427,7 @@ static void rw_thd(struct thread_pool *pool, void *d) struct ThdEntry *thd, *next_thd; struct iio_device *dev = entry->dev; struct iio_device_pdata *dev_pdata; - unsigned int i, nb_channels = iio_device_get_channels_count(dev); + unsigned int nb_channels = iio_device_get_channels_count(dev); struct iio_channel *chn; struct iio_block *block; ssize_t nb_bytes, ret = 0;