Skip to content

Commit

Permalink
Fixes GCC 12 compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Jul 4, 2024
1 parent dfa1f36 commit b4778ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions das2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ static void _serial_onOpenDim(
if(sPhysDim[0] == '\0')
sPhysDim = "none";

if((dt == DASDIM_COORD) && ((sAxis == NULL)||(sAxis[0] == '\0')) ){
if((dt == DASDIM_COORD) && (sAxis[0] == '\0')){
pCtx->nDasErr = das_error(DASERR_SERIAL,
"Attribute \"axis\" missing for physical dimension %s in dataset ID %d",
sPhysDim, id
Expand All @@ -375,7 +375,7 @@ static void _serial_onOpenDim(
DasDim* pDim = new_DasDim(sPhysDim, sName, dt, DasDs_rank(pCtx->pDs));

/* Optional items */
if((sAxis != NULL)&&(sAxis[0] != '\0')){
if(sAxis[0] != '\0'){
char* sBeg = sAxis;
char* sEnd = NULL;
int iAxis = 0;
Expand Down Expand Up @@ -1534,4 +1534,4 @@ DasErrCode dasds_decode_data(DasDs* pDs, DasBuf* pBuf)
}

return DAS_OKAY;
}
}

0 comments on commit b4778ae

Please sign in to comment.