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

fix eclipse warnings

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