From 91cac030250de9dc4d506af30917557c3aa1f624 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 13 May 2013 13:40:28 +0100 Subject: [PATCH] Compiler warnings: unreachable code --- src/grib_ibmfloat.c | 2 +- src/grib_iterator_class_gaussian.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grib_ibmfloat.c b/src/grib_ibmfloat.c index 9738e3cfe..6ac5848a2 100644 --- a/src/grib_ibmfloat.c +++ b/src/grib_ibmfloat.c @@ -190,7 +190,7 @@ unsigned long grib_ibm_nearest_smaller_to_long(double x) if ( m == mmin ) { /* printf("grib_ibm_nearest_smaller_to_long: m == mmin (0x%lX) e=%lu\n",m,e); */ e = s ? e : e-1; - if (e<0) e=0; /* this condition is always FALSE -- 'e' is unsigned long */ + /*if (e<0) e=0; this condition is always FALSE -- 'e' is unsigned long */ if (e>127) e=127; /* printf("grib_ibm_nearest_smaller_to_long: e=%lu \n",e); */ } diff --git a/src/grib_iterator_class_gaussian.c b/src/grib_iterator_class_gaussian.c index b3fc5b85f..7915fd8d2 100644 --- a/src/grib_iterator_class_gaussian.c +++ b/src/grib_iterator_class_gaussian.c @@ -140,7 +140,7 @@ static int init(grib_iterator* i,grib_handle* h,grib_arguments *args){ if (jScansPositively) { for(lai=0;lainam;lai++) { self->las[lai] = lats[istart--]; - if (istart<0) istart=size-1; /* this condition is always FALSE -- 'istart' is unsigned long */ + /*if (istart<0) istart=size-1; this condition is always FALSE -- 'istart' is unsigned long */ } } else { for(lai=0;lainam;lai++) {