From 196ebbb0057ac63160757af681612da8db30a2af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Edgar=20Fu=C3=9F?= Date: Wed, 8 Jul 2020 18:30:39 +0200 Subject: [PATCH] Remove use of undefined suppress_warning variable --- src/nfs.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/nfs.c b/src/nfs.c index 3ddab6ab4..f19bc3e7d 100644 --- a/src/nfs.c +++ b/src/nfs.c @@ -622,19 +622,14 @@ static int nfs_read(void) { /* NetBSD reports v2 statistics mapped to v3 and doen't yet support v4 */ if (report_v2) { - if (!suppress_warning) { - WARNING( - "nfs plugin: NFSv2 statistics have been requested " - "but they are mapped to NFSv3 statistics in the kernel on NetBSD."); - } + WARNING("nfs plugin: NFSv2 statistics have been requested " + "but they are mapped to NFSv3 statistics in the kernel on NetBSD."); return 0; } if (report_v4) { - if (!suppress_warning) { - WARNING("nfs plugin: NFSv4 statistics have been requested " - "but they are not yet supported on NetBSD."); - } + WARNING("nfs plugin: NFSv4 statistics have been requested " + "but they are not yet supported on NetBSD."); return 0; } -- 2.47.2