From: Marek Schimara Date: Thu, 1 Sep 2016 09:39:27 +0000 (+0200) Subject: bindings/perl-shared/RRDs.xs: fix gcc warning "enumeration value 'CF_HWPREDICT' not... X-Git-Tag: v1.7.0~35^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8243f0774b0218627cc9d84332caae519e644646;p=thirdparty%2Frrdtool-1.x.git bindings/perl-shared/RRDs.xs: fix gcc warning "enumeration value 'CF_HWPREDICT' not handled in switch" RRDs.xs:150:5: warning: enumeration value 'CF_HWPREDICT' not handled in switch [-Wswitch] switch(cf_idx){ ^ Same for: CF_SEASONAL, CF_DEVPREDICT, CF_DEVSEASONAL, CF_FAILURES, CF_MHWPREDICT --- diff --git a/bindings/perl-shared/RRDs.xs b/bindings/perl-shared/RRDs.xs index af55fa65..ac24a009 100644 --- a/bindings/perl-shared/RRDs.xs +++ b/bindings/perl-shared/RRDs.xs @@ -159,6 +159,8 @@ static int rrd_fetch_cb_wrapper( break; case CF_LAST: cfStr = "LAST"; + default: + break; } hv_store_ent(callHV, sv_2mortal(newSVpv("cd",0)),newSVpv(cfStr,0),0); hv_store_ent(callHV, sv_2mortal(newSVpv("start",0)),newSVuv(*start),0);