From d3e1c83c9b348c2ee2538498f9938ded16fea1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20C=C5=93ur?= Date: Thu, 5 May 2022 07:54:41 +0800 Subject: [PATCH] Address build warnings (#3052) --- daemon/daemon-posix.cc | 2 +- libtransmission/platform-quota.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }