From: Edgar Fuß Date: Wed, 8 Jul 2020 16:30:39 +0000 (+0200) Subject: Remove use of undefined suppress_warning variable X-Git-Tag: collectd-5.12.0~21^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=196ebbb0057ac63160757af681612da8db30a2af;p=thirdparty%2Fcollectd.git Remove use of undefined suppress_warning variable --- 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; }