From 68231e43c35e53f2617ae56f8649db89ff3be954 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Fri, 26 May 2023 14:20:40 -0600 Subject: [PATCH] EXODUS: Clean up static analysis issue --- packages/seacas/libraries/exodus/src/ex_put_name.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/seacas/libraries/exodus/src/ex_put_name.c b/packages/seacas/libraries/exodus/src/ex_put_name.c index 9276f6ce8c..38a4840049 100644 --- a/packages/seacas/libraries/exodus/src/ex_put_name.c +++ b/packages/seacas/libraries/exodus/src/ex_put_name.c @@ -52,7 +52,6 @@ int ex__put_assembly_name(int exoid, ex_entity_type obj_type, ex_entity_id entit if ((status = ex__leavedef(exoid, __func__)) != NC_NOERR) { snprintf(errmsg, MAX_ERR_LENGTH, "ERROR: failed to exit define mode in file id %d", exoid); ex_err_fn(exoid, __func__, errmsg, status); - EX_FUNC_LEAVE(EX_FATAL); } EX_FUNC_LEAVE(EX_FATAL); } @@ -96,7 +95,7 @@ int ex_put_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id, cons } switch (obj_type) { - case EX_ASSEMBLY: return ex__put_assembly_name(exoid, obj_type, entity_id, name); break; + case EX_ASSEMBLY: return ex__put_assembly_name(exoid, obj_type, entity_id, name); case EX_EDGE_BLOCK: vobj = VAR_NAME_ED_BLK; break; case EX_FACE_BLOCK: vobj = VAR_NAME_FA_BLK; break; case EX_ELEM_BLOCK: vobj = VAR_NAME_EL_BLK; break; @@ -137,7 +136,7 @@ int ex_put_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id, cons } /* If this is a null entity, then 'ent_ndx' will be negative. - * We don't care in this __func__, so make it positive and continue... + * We don't care in this function, so make it positive and continue... */ if (ent_ndx < 0) { ent_ndx = -ent_ndx;