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

Fix gcc warnings.

parent 5f943d88
...@@ -189,7 +189,7 @@ void cdfDefineCellMethods(stream_t *streamptr, int cdiID, int varID, int fileID, ...@@ -189,7 +189,7 @@ void cdfDefineCellMethods(stream_t *streamptr, int cdiID, int varID, int fileID,
if (cellMethod) if (cellMethod)
{ {
const char *attname = "cell_methods"; const char *attname = "cell_methods";
char atttxt[CDI_MAX_NAME+1]; char atttxt[CDI_MAX_NAME+10];
sprintf(atttxt, "%s: %s", timeVarName, cellMethod); sprintf(atttxt, "%s: %s", timeVarName, cellMethod);
cdf_put_att_text(fileID, ncvarID, attname, strlen(atttxt), atttxt); cdf_put_att_text(fileID, ncvarID, attname, strlen(atttxt), atttxt);
} }
......
...@@ -184,8 +184,8 @@ void grid_free_components(grid_t *gridptr) ...@@ -184,8 +184,8 @@ void grid_free_components(grid_t *gridptr)
for ( size_t i = 0; i < sizeof(p2free)/sizeof(p2free[0]); ++i ) for ( size_t i = 0; i < sizeof(p2free)/sizeof(p2free[0]); ++i )
if ( p2free[i] ) Free(p2free[i]); if ( p2free[i] ) Free(p2free[i]);
int gridID = gridptr->self;
/* /*
int gridID = gridptr->self;
cdiDeleteKeys(gridID, CDI_XAXIS); cdiDeleteKeys(gridID, CDI_XAXIS);
cdiDeleteKeys(gridID, CDI_YAXIS); cdiDeleteKeys(gridID, CDI_YAXIS);
cdiDeleteKeys(gridID, CDI_GLOBAL); cdiDeleteKeys(gridID, CDI_GLOBAL);
......
Markdown is supported
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