Commit 5b7fb4df authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

fix eclipse warnings

parent a03059cb
......@@ -96,6 +96,7 @@ void extLibInit()
}
default:
Message("Invalid character in %s: %s", envName, envString);
break;
}
}
}
......@@ -291,6 +292,7 @@ int extInqData(void *ext, int prec, void *data)
default:
{
Error("unexpected data precision %d", rprec);
break;
}
}
......@@ -374,6 +376,7 @@ int extDefData(void *ext, int prec, const void *data)
default:
{
Error("unexpected data precision %d", rprec);
break;
}
}
......@@ -449,6 +452,7 @@ int extRead(int fileID, void *ext)
default:
{
Error("unexpected header precision %d", hprec);
break;
}
}
......@@ -557,6 +561,7 @@ int extWrite(int fileID, void *ext)
default:
{
Error("unexpected header precision %d", rprec);
break;
}
}
......@@ -587,6 +592,7 @@ int extWrite(int fileID, void *ext)
default:
{
Error("unexpected data precision %d", rprec);
break;
}
}
......
......@@ -3713,6 +3713,7 @@ void gridPrintKernel(grid_t * gridptr, int opt, FILE *fp)
default:
{
fprintf(stderr, "Unsupported grid type: %s\n", gridNamePtr(type));
break;
}
}
......
......@@ -76,6 +76,7 @@ void iegLibInit()
}
default:
Message("Invalid character in %s: %s", envName, envString);
break;
}
pos += 2;
}
......@@ -275,6 +276,7 @@ int iegInqData(iegrec_t *iegp, int prec, void *data)
default:
{
Error("unexpected data precision %d", dprec);
break;
}
}
......@@ -354,6 +356,7 @@ int iegDefData(iegrec_t *iegp, int prec, const void *data)
default:
{
Error("unexpected data precision %d", dprec);
break;
}
}
......@@ -592,6 +595,7 @@ int iegWrite(int fileID, iegrec_t *iegp)
default:
{
Error("unexpected data precision %d", dprec);
break;
}
}
......
......@@ -98,6 +98,7 @@ void srvLibInit()
}
default:
Message("Invalid character in %s: %s", envName, envString);
break;
}
pos += 2;
}
......@@ -296,6 +297,7 @@ int srvInqData(srvrec_t *srvp, int prec, void *data)
default:
{
Error("unexpected data precision %d", dprec);
break;
}
}
......@@ -384,6 +386,7 @@ int srvDefData(srvrec_t *srvp, int prec, const void *data)
default:
{
Error("unexpected data precision %d", dprec);
break;
}
}
......@@ -459,6 +462,7 @@ int srvRead(int fileID, srvrec_t *srvp)
default:
{
Error("unexpected header precision %d", hprec);
break;
}
}
......@@ -559,6 +563,7 @@ int srvWrite(int fileID, srvrec_t *srvp)
default:
{
Error("unexpected header precision %d", hprec);
break;
}
}
......@@ -588,6 +593,7 @@ int srvWrite(int fileID, srvrec_t *srvp)
default:
{
Error("unexpected data precision %d", dprec);
break;
}
}
......
......@@ -50,15 +50,15 @@ void cdiPrintDefaults(void)
void cdiDebug(int level)
{
if ( level == 1 || level & 2 ) CDI_Debug = 1;
if ( level == 1 || (level & 2) ) CDI_Debug = 1;
if ( CDI_Debug ) Message("debug level %d", level);
if ( level == 1 || level & 4 ) memDebug(1);
if ( level == 1 || (level & 4) ) memDebug(1);
if ( level == 1 || level & 8 ) fileDebug(1);
if ( level == 1 || (level & 8) ) fileDebug(1);
if ( level == 1 || level & 16 )
if ( level == 1 || (level & 16) )
{
#if defined (HAVE_LIBGRIB)
gribSetDebug(1);
......@@ -583,6 +583,7 @@ int cdiInqContents(stream_t * streamptr)
Message("%s support not compiled in!", strfiletype(filetype));
status = CDI_ELIBNAVAIL;
break;
}
}
......
......@@ -327,7 +327,7 @@ void varAddRecord(int recID, int param, int gridID, int zaxistype, int lbounds,
*pvarID = varID;
*plevelID = levelID;
}
/*
static
int dblcmp(const void *s1, const void *s2)
{
......@@ -338,7 +338,7 @@ int dblcmp(const void *s1, const void *s2)
return (cmp);
}
*/
static
int cmpLevelTable(const void *s1, const void *s2)
{
......
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