Commit d1f36cd9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

fix eclipse warnings

parent 6665043b
......@@ -223,6 +223,7 @@ void *Consecstat (void *argument)
break;
default:
printf (SWITCHWARN,__func__);
break;
}
for ( recID = 0; recID < nrecs; recID++ )
......@@ -257,6 +258,7 @@ void *Consecstat (void *argument)
break;
default:
printf (SWITCHWARN,__func__);
break;
}
}
histvdate = vdate;
......
......@@ -239,6 +239,7 @@ void filedes(int streamID)
break;
default:
printf(" unsupported filetype %d\n" , filetype);
break;
}
printf("\n");
......
......@@ -46,7 +46,7 @@ void fft2(double *real, double *imag, int n, int isign)
int nn, mmax, m, j, istep, i;
double wtemp, wr, wpr, wpi, wi, theta, tempr, tempi, tmp;
if ( n < 2 || n&(n-1) ) printf("n must be power of 2\n");
if ( n < 2 || (n&(n-1)) ) printf("n must be power of 2\n");
nn = n << 1;
j = 1;
......
......@@ -147,6 +147,7 @@ void *Ninfo(void *argument)
break;
default:
cdoAbort("operator not implemented!");
break;
}
streamClose(streamID);
......
......@@ -90,6 +90,7 @@ void get_map_type(int operfunc, int *map_type, int *submap_type, int *remap_orde
break;
default:
cdoAbort("Unknown mapping method");
break;
}
}
......
......@@ -323,6 +323,7 @@ void *Spectrum(void *argument)
break;
default:
cdoAbort("Invalid window type %d!", which_window);
break;
}
wssum = 0;
......
......@@ -322,8 +322,8 @@ void cdoSetDebug(int level)
*/
cdiDebug(level);
if ( level == 1 || level & 32 ) cdoDebug = 1;
if ( level == 1 || level & 64 ) pstreamDebug(1);
if ( level == 1 || (level & 32) ) cdoDebug = 1;
if ( level == 1 || (level & 64) ) pstreamDebug(1);
#if defined (HAVE_LIBPTHREAD)
if ( level == 1 || level & 128 ) pipeDebug(1);
if ( level == 1 || level & 256 ) Pthread_debug(1);
......
......@@ -71,7 +71,7 @@ nodeType *expr_con_con(int oper, nodeType *p1, nodeType *p2)
case '*': p->u.con.value = p1->u.con.value * p2->u.con.value; break;
case '/': p->u.con.value = p1->u.con.value / p2->u.con.value; break;
case '^': p->u.con.value = pow(p1->u.con.value, p2->u.con.value); break;
default: cdoAbort("%s: operator %c unsupported!", __func__, oper);
default: cdoAbort("%s: operator %c unsupported!", __func__, oper); break;
}
return (p);
......@@ -165,6 +165,7 @@ nodeType *expr_con_var(int oper, nodeType *p1, nodeType *p2)
break;
default:
cdoAbort("%s: operator %c unsupported!", __func__, oper);
break;
}
nmiss = 0;
......@@ -272,6 +273,7 @@ nodeType *expr_var_con(int oper, nodeType *p1, nodeType *p2)
break;
default:
cdoAbort("%s: operator %c unsupported!", __func__, oper);
break;
}
nmiss = 0;
......@@ -420,6 +422,7 @@ nodeType *expr_var_var(int oper, nodeType *p1, nodeType *p2)
break;
default:
cdoAbort("%s: operator %c unsupported!", __func__, oper);
break;
}
}
......@@ -921,7 +924,9 @@ nodeType *expr_run(nodeType *p, parse_parm_t *parse_arg)
rnode = expr(p->u.opr.oper, expr_run(p->u.opr.op[0], parse_arg),
expr_run(p->u.opr.op[1], parse_arg));
}
break;
}
break;
}
return (rnode);
......
......@@ -1214,7 +1214,7 @@ void initmask(int *mask, int ni, int nd)
*((int *)ptmp2) = 0;
ptmp2 += section.dim[0].mult;
}
break;
}
}
......@@ -1310,6 +1310,7 @@ void gme_grid_restore(double *p, int ni, int nd)
for (j = 0; j <= ni; j++) {
p[ni+tmp4*(j+1)+tmp5*10+tmp3] = p[ni-j+tmp4*(ni+1)+tmp5*5+tmp3];
}
break;
}
}
......
......@@ -498,6 +498,8 @@ int gridDefine(grid_t grid)
Error("Undefined grid type!");
else
Error("Unsupported grid type: %s", gridNamePtr(grid.type));
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment