When building without assertions some arguments and variables
are not used. This commit adds respective attributes to solve
the warning.
Signed-off-by: Marc Rittinghaus <marc.rittinghaus@kit.edu>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Andrei Topala <topala.andrei@gmail.com>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1115
struct uk_semaphore s;
};
-static void __sync_io_callback(struct uk_blkreq *req,
- void *cookie_callback)
+static void __sync_io_callback(struct uk_blkreq *req __unused,
+ void *cookie_callback)
{
struct uk_blkdev_sync_io_request *sync_io_req;
- UK_ASSERT(req);
UK_ASSERT(cookie_callback);
sync_io_req = (struct uk_blkdev_sync_io_request *)cookie_callback;