mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
remove __UNUSED
No need since we have C++17. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Jari Sundell
parent
1003013f10
commit
3ab38583b8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user