From 1483e2df9a4c681a0a1bef5fd1822b37a4de1873 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 10 Jul 2016 17:24:05 +0200 Subject: [PATCH] INPparseNumMod(), #8/14, move the 'default:' body out of the 'switch' this body is inevitable, as there is no other break out of the 'switch' --- src/spicelib/parser/inpgmod.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index ffe385e22..3f4d29cc6 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -381,6 +381,9 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess default: lastType = cardType; // cardType is not used downwards from here + break; + } + if (lastType == E_MISSING) { /* new command card */ if (cardName) FREE(cardName); /* get rid of old card name */ @@ -452,8 +455,6 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess FREE(parm); } } - break; - } } *errMessage = err; return( 0 );