remove __UNUSED

No need since we have C++17.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2025-05-31 13:11:44 -07:00
committed by Jari Sundell
parent 1003013f10
commit 3ab38583b8
8 changed files with 17 additions and 38 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ Lockfile::try_lock() {
if (pos == 0) {
ssize_t len = std::strlen(buf);
::snprintf(buf + len, 255 - len, ":+%i\n", ::getpid());
int __UNUSED result = ::write(fd, buf, std::strlen(buf));
[[maybe_unused]] int result = ::write(fd, buf, std::strlen(buf));
}
::close(fd);