X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=io_uring_engine.cpp;h=63a3af78a86256ad4469443e6f872b4f890a43bc;hb=fd6198891d6fd9642effc0843fef6f23b991af3e;hp=ea71c965f05becd4ecbfb3f4e1ae775196d05cab;hpb=9f9207b78c9ed662c38bff733d24089b28d947eb;p=plocate diff --git a/io_uring_engine.cpp b/io_uring_engine.cpp index ea71c96..63a3af7 100644 --- a/io_uring_engine.cpp +++ b/io_uring_engine.cpp @@ -46,7 +46,7 @@ IOUringEngine::IOUringEngine(size_t slop_bytes) #endif } -void IOUringEngine::submit_stat(const char *path, std::function cb) +void IOUringEngine::submit_stat(const char *path [[maybe_unused]], std::function cb [[maybe_unused]]) { assert(supports_stat); @@ -64,10 +64,6 @@ void IOUringEngine::submit_stat(const char *path, std::function cb) qs.pathname = strdup(path); queued_stats.push(move(qs)); } -#else - /* unused parameters */ - (void)path; - (void)cb; #endif }