Address build warnings (#3052)

This commit is contained in:
Antoine Cœur 2022-05-05 07:54:41 +08:00 committed by GitHub
parent a57d265968
commit d3e1c83c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ static void handle_signal(int sig)
break;
default:
assert("Unexpected signal");
assert("Unexpected signal" && 0);
}
}

View File

@ -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;
}