if (!supports_stat) {
dprintf("io_uring on this kernel does not support statx(); will do synchronous access checking.\n");
}
- free(probe);
+ io_uring_free_probe(probe);
}
#endif
}
-void IOUringEngine::submit_stat(const char *path, std::function<void(bool)> cb)
+void IOUringEngine::submit_stat(const char *path [[maybe_unused]], std::function<void(bool)> cb [[maybe_unused]])
{
assert(supports_stat);
qs.pathname = strdup(path);
queued_stats.push(move(qs));
}
-#else
- /* unused parameters */
- (void)path;
- (void)cb;
#endif
}