From b4778aefecda89d3a1c783afe8d01e75c77f64f8 Mon Sep 17 00:00:00 2001 From: Chris Piker Date: Wed, 3 Jul 2024 20:56:03 -0500 Subject: [PATCH] Fixes GCC 12 compiler warnings --- das2/serial.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/das2/serial.c b/das2/serial.c index 66a2e96..0a80981 100644 --- a/das2/serial.c +++ b/das2/serial.c @@ -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 @@ -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; @@ -1534,4 +1534,4 @@ DasErrCode dasds_decode_data(DasDs* pDs, DasBuf* pBuf) } return DAS_OKAY; -} \ No newline at end of file +}