diff --git a/daemon/daemon-posix.cc b/daemon/daemon-posix.cc index 8f79e36a1..e8b289613 100644 --- a/daemon/daemon-posix.cc +++ b/daemon/daemon-posix.cc @@ -59,7 +59,7 @@ static void handle_signal(int sig) break; default: - assert("Unexpected signal"); + assert("Unexpected signal" && 0); } } diff --git a/libtransmission/platform-quota.cc b/libtransmission/platform-quota.cc index 1cce3f1c4..2fc7dd74e 100644 --- a/libtransmission/platform-quota.cc +++ b/libtransmission/platform-quota.cc @@ -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; }