mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Address build warnings (#3052)
This commit is contained in:
@@ -59,7 +59,7 @@ static void handle_signal(int sig)
|
||||
break;
|
||||
|
||||
default:
|
||||
assert("Unexpected signal");
|
||||
assert("Unexpected signal" && 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ static char const* getdev(std::string_view path)
|
||||
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
if (mnt[i].f_mntonname != nullptr && path == mnt[i].f_mntonname)
|
||||
if (path == mnt[i].f_mntonname)
|
||||
{
|
||||
return mnt[i].f_mntfromname;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user