]> git.sesse.net Git - plocate/blobdiff - io_uring_engine.cpp
Release plocate 1.1.22.
[plocate] / io_uring_engine.cpp
index ea71c965f05becd4ecbfb3f4e1ae775196d05cab..be9366037ae0dbd9e3ad2f34f7c9995513f1d20a 100644 (file)
@@ -41,12 +41,12 @@ IOUringEngine::IOUringEngine(size_t slop_bytes)
                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);
 
@@ -64,10 +64,6 @@ void IOUringEngine::submit_stat(const char *path, std::function<void(bool)> cb)
                qs.pathname = strdup(path);
                queued_stats.push(move(qs));
        }
-#else
-       /* unused parameters */
-       (void)path;
-       (void)cb;
 #endif
 }