mirror of https://github.com/ecmwf/eccodes.git
C lang warnings: comment added for 'always false conditions'
This commit is contained in:
parent
f613b8f86c
commit
95b82e663a
|
@ -190,7 +190,7 @@ unsigned long grib_ibm_nearest_smaller_to_long(double x)
|
||||||
if ( m == mmin ) {
|
if ( m == mmin ) {
|
||||||
/* printf("grib_ibm_nearest_smaller_to_long: m == mmin (0x%lX) e=%lu\n",m,e); */
|
/* printf("grib_ibm_nearest_smaller_to_long: m == mmin (0x%lX) e=%lu\n",m,e); */
|
||||||
e = s ? e : e-1;
|
e = s ? e : e-1;
|
||||||
if (e<0) e=0;
|
if (e<0) e=0; /* this condition is always FALSE -- 'e' is unsigned long */
|
||||||
if (e>127) e=127;
|
if (e>127) e=127;
|
||||||
/* printf("grib_ibm_nearest_smaller_to_long: e=%lu \n",e); */
|
/* printf("grib_ibm_nearest_smaller_to_long: e=%lu \n",e); */
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,7 @@ static int init(grib_iterator* i,grib_handle* h,grib_arguments *args){
|
||||||
if (jScansPositively) {
|
if (jScansPositively) {
|
||||||
for(lai=0;lai<self->nam;lai++) {
|
for(lai=0;lai<self->nam;lai++) {
|
||||||
self->las[lai] = lats[istart--];
|
self->las[lai] = lats[istart--];
|
||||||
if (istart<0) istart=size-1;
|
if (istart<0) istart=size-1; /* this condition is always FALSE -- 'istart' is unsigned long */
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for(lai=0;lai<self->nam;lai++) {
|
for(lai=0;lai<self->nam;lai++) {
|
||||||
|
|
Loading…
Reference in New Issue