diff --git a/src/spicelib/devices/bjt/bjtparam.c b/src/spicelib/devices/bjt/bjtparam.c index 6649c96e1..a66e0a8c2 100644 --- a/src/spicelib/devices/bjt/bjtparam.c +++ b/src/spicelib/devices/bjt/bjtparam.c @@ -26,7 +26,7 @@ BJTparam(int param, IFvalue *value, GENinstance *instPtr, IFvalue *select) NG_IGNORE(select); - switch(param) { + switch (param) { case BJT_AREA: here->BJTarea = value->rValue; here->BJTareaGiven = TRUE; @@ -66,7 +66,9 @@ BJTparam(int param, IFvalue *value, GENinstance *instPtr, IFvalue *select) here->BJTsenParmNo = value->iValue; break; case BJT_IC : - switch(value->v.numValue) { + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { case 2: here->BJTicVCE = *(value->v.vec.rVec+1); here->BJTicVCEGiven = TRUE; diff --git a/src/spicelib/devices/bsim1/b1par.c b/src/spicelib/devices/bsim1/b1par.c index 7b6887d93..0d64b3bcc 100644 --- a/src/spicelib/devices/bsim1/b1par.c +++ b/src/spicelib/devices/bsim1/b1par.c @@ -21,7 +21,7 @@ B1param(int param, IFvalue *value, GENinstance *inst, NG_IGNORE(select); - switch(param) { + switch (param) { case BSIM1_W: here->B1w = value->rValue; here->B1wGiven = TRUE; @@ -74,7 +74,9 @@ B1param(int param, IFvalue *value, GENinstance *inst, here->B1icVGSGiven = TRUE; break; case BSIM1_IC: - switch(value->v.numValue){ + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue){ case 3: here->B1icVBS = *(value->v.vec.rVec+2); here->B1icVBSGiven = TRUE; diff --git a/src/spicelib/devices/bsim2/b2par.c b/src/spicelib/devices/bsim2/b2par.c index 974b51041..07e62eff1 100644 --- a/src/spicelib/devices/bsim2/b2par.c +++ b/src/spicelib/devices/bsim2/b2par.c @@ -20,7 +20,7 @@ B2param(int param, IFvalue *value, GENinstance *inst, IFvalue *select) NG_IGNORE(select); - switch(param) { + switch (param) { case BSIM2_W: here->B2w = value->rValue; here->B2wGiven = TRUE; @@ -73,6 +73,8 @@ B2param(int param, IFvalue *value, GENinstance *inst, IFvalue *select) here->B2icVGSGiven = TRUE; break; case BSIM2_IC: + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ switch(value->v.numValue){ case 3: here->B2icVBS = *(value->v.vec.rVec+2); diff --git a/src/spicelib/devices/bsim3/b3par.c b/src/spicelib/devices/bsim3/b3par.c index 74599ea1e..ae961b586 100644 --- a/src/spicelib/devices/bsim3/b3par.c +++ b/src/spicelib/devices/bsim3/b3par.c @@ -31,8 +31,8 @@ IFvalue *select) if (!cp_getvar("scale", CP_REAL, &scale, 0)) scale = 1; - switch(param) - { case BSIM3_W: + switch (param) { + case BSIM3_W: here->BSIM3w = value->rValue*scale; here->BSIM3wGiven = TRUE; break; @@ -104,7 +104,9 @@ IFvalue *select) here->BSIM3mulu0Given = TRUE; break; case BSIM3_IC: - switch(value->v.numValue){ + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { case 3: here->BSIM3icVBS = *(value->v.vec.rVec+2); here->BSIM3icVBSGiven = TRUE; diff --git a/src/spicelib/devices/bsim3soi_dd/b3soiddpar.c b/src/spicelib/devices/bsim3soi_dd/b3soiddpar.c index fb2ad5702..a16ca92ca 100644 --- a/src/spicelib/devices/bsim3soi_dd/b3soiddpar.c +++ b/src/spicelib/devices/bsim3soi_dd/b3soiddpar.c @@ -23,8 +23,10 @@ B3SOIDDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) NG_IGNORE(select); - switch(param) - { case B3SOIDD_W: + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch(param) { + case B3SOIDD_W: here->B3SOIDDw = value->rValue; here->B3SOIDDwGiven = TRUE; break; @@ -104,7 +106,7 @@ B3SOIDDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) here->B3SOIDDbodySquaresGiven = TRUE; break; case B3SOIDD_IC: - switch(value->v.numValue){ + switch (value->v.numValue) { case 5: here->B3SOIDDicVPS = *(value->v.vec.rVec+4); here->B3SOIDDicVPSGiven = TRUE; diff --git a/src/spicelib/devices/bsim3soi_fd/b3soifdpar.c b/src/spicelib/devices/bsim3soi_fd/b3soifdpar.c index 6fbe77f0c..db2d2b32a 100644 --- a/src/spicelib/devices/bsim3soi_fd/b3soifdpar.c +++ b/src/spicelib/devices/bsim3soi_fd/b3soifdpar.c @@ -24,8 +24,8 @@ B3SOIFDparam(int param, IFvalue *value, GENinstance *inst, NG_IGNORE(select); - switch(param) - { case B3SOIFD_W: + switch (param) { + case B3SOIFD_W: here->B3SOIFDw = value->rValue; here->B3SOIFDwGiven = TRUE; break; @@ -105,7 +105,9 @@ B3SOIFDparam(int param, IFvalue *value, GENinstance *inst, here->B3SOIFDbodySquaresGiven = TRUE; break; case B3SOIFD_IC: - switch(value->v.numValue){ + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { case 5: here->B3SOIFDicVPS = *(value->v.vec.rVec+4); here->B3SOIFDicVPSGiven = TRUE; diff --git a/src/spicelib/devices/bsim3soi_pd/b3soipdpar.c b/src/spicelib/devices/bsim3soi_pd/b3soipdpar.c index dafba04cb..624e41009 100644 --- a/src/spicelib/devices/bsim3soi_pd/b3soipdpar.c +++ b/src/spicelib/devices/bsim3soi_pd/b3soipdpar.c @@ -25,8 +25,10 @@ B3SOIPDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) NG_IGNORE(select); - switch(param) - { case B3SOIPD_W: + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch(param) { + case B3SOIPD_W: here->B3SOIPDw = value->rValue; here->B3SOIPDwGiven = TRUE; break; @@ -148,7 +150,7 @@ B3SOIPDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) case B3SOIPD_IC: - switch(value->v.numValue){ + switch (value->v.numValue) { case 5: here->B3SOIPDicVPS = *(value->v.vec.rVec+4); here->B3SOIPDicVPSGiven = TRUE; diff --git a/src/spicelib/devices/bsim3v0/b3v0par.c b/src/spicelib/devices/bsim3v0/b3v0par.c index 6e86fcc97..c3d0ac1c3 100644 --- a/src/spicelib/devices/bsim3v0/b3v0par.c +++ b/src/spicelib/devices/bsim3v0/b3v0par.c @@ -23,8 +23,8 @@ BSIM3v0param(int param, IFvalue *value, GENinstance *inst, IFvalue *select) if (!cp_getvar("scale", CP_REAL, &scale, 0)) scale = 1; - switch(param) - { case BSIM3v0_W: + switch (param) { + case BSIM3v0_W: here->BSIM3v0w = value->rValue*scale; here->BSIM3v0wGiven = TRUE; break; @@ -80,7 +80,9 @@ BSIM3v0param(int param, IFvalue *value, GENinstance *inst, IFvalue *select) here->BSIM3v0nqsModGiven = TRUE; break; case BSIM3v0_IC: - switch(value->v.numValue){ + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { case 3: here->BSIM3v0icVBS = *(value->v.vec.rVec+2); here->BSIM3v0icVBSGiven = TRUE; diff --git a/src/spicelib/devices/bsim3v1/b3v1par.c b/src/spicelib/devices/bsim3v1/b3v1par.c index 440744015..839b604c1 100644 --- a/src/spicelib/devices/bsim3v1/b3v1par.c +++ b/src/spicelib/devices/bsim3v1/b3v1par.c @@ -29,8 +29,8 @@ BSIM3v1param(int param, IFvalue *value, GENinstance *inst, IFvalue *select) if (!cp_getvar("scale", CP_REAL, &scale, 0)) scale = 1; - switch(param) - { case BSIM3v1_W: + switch (param) { + case BSIM3v1_W: here->BSIM3v1w = value->rValue*scale; here->BSIM3v1wGiven = TRUE; break; @@ -86,7 +86,9 @@ BSIM3v1param(int param, IFvalue *value, GENinstance *inst, IFvalue *select) here->BSIM3v1nqsModGiven = TRUE; break; case BSIM3v1_IC: - switch(value->v.numValue){ + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { case 3: here->BSIM3v1icVBS = *(value->v.vec.rVec+2); here->BSIM3v1icVBSGiven = TRUE; diff --git a/src/spicelib/devices/bsim3v32/b3v32par.c b/src/spicelib/devices/bsim3v32/b3v32par.c index 485ab3642..ff5d7fa82 100644 --- a/src/spicelib/devices/bsim3v32/b3v32par.c +++ b/src/spicelib/devices/bsim3v32/b3v32par.c @@ -28,8 +28,8 @@ BSIM3v32param (int param, IFvalue *value, GENinstance *inst, IFvalue *select) if (!cp_getvar("scale", CP_REAL, &scale, 0)) scale = 1; - switch(param) - { case BSIM3v32_W: + switch (param) { + case BSIM3v32_W: here->BSIM3v32w = value->rValue*scale; here->BSIM3v32wGiven = TRUE; break; @@ -97,7 +97,9 @@ BSIM3v32param (int param, IFvalue *value, GENinstance *inst, IFvalue *select) here->BSIM3v32mulu0Given = TRUE; break; case BSIM3v32_IC: - switch(value->v.numValue){ + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { case 3: here->BSIM3v32icVBS = *(value->v.vec.rVec+2); here->BSIM3v32icVBSGiven = TRUE; diff --git a/src/spicelib/devices/bsim4/b4par.c b/src/spicelib/devices/bsim4/b4par.c index fa5654b4a..b57337d23 100644 --- a/src/spicelib/devices/bsim4/b4par.c +++ b/src/spicelib/devices/bsim4/b4par.c @@ -81,8 +81,8 @@ IFvalue *select) if (!cp_getvar("scale", CP_REAL, &scale, 0)) scale = 1; - switch(param) - { case BSIM4_W: + switch (param) { + case BSIM4_W: here->BSIM4w = value->rValue * scale; here->BSIM4wGiven = TRUE; break; @@ -230,8 +230,10 @@ IFvalue *select) here->BSIM4icVBSGiven = TRUE; break; case BSIM4_IC: - switch(value->v.numValue) - { case 3: + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { + case 3: here->BSIM4icVBS = *(value->v.vec.rVec+2); here->BSIM4icVBSGiven = TRUE; /* FALLTHROUGH */ diff --git a/src/spicelib/devices/bsim4v5/b4v5par.c b/src/spicelib/devices/bsim4v5/b4v5par.c index 2a49a0ad8..e62b7f660 100644 --- a/src/spicelib/devices/bsim4v5/b4v5par.c +++ b/src/spicelib/devices/bsim4v5/b4v5par.c @@ -35,8 +35,8 @@ IFvalue *select) if (!cp_getvar("scale", CP_REAL, &scale, 0)) scale = 1; - switch(param) - { case BSIM4v5_W: + switch (param) { + case BSIM4v5_W: here->BSIM4v5w = value->rValue*scale; here->BSIM4v5wGiven = TRUE; break; @@ -180,8 +180,10 @@ IFvalue *select) here->BSIM4v5icVBSGiven = TRUE; break; case BSIM4v5_IC: - switch(value->v.numValue) - { case 3: + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { + case 3: here->BSIM4v5icVBS = *(value->v.vec.rVec+2); here->BSIM4v5icVBSGiven = TRUE; /* FALLTHROUGH */ diff --git a/src/spicelib/devices/bsim4v6/b4v6par.c b/src/spicelib/devices/bsim4v6/b4v6par.c index 2debab48c..87e0bc09e 100644 --- a/src/spicelib/devices/bsim4v6/b4v6par.c +++ b/src/spicelib/devices/bsim4v6/b4v6par.c @@ -37,8 +37,8 @@ IFvalue *select) if (!cp_getvar("scale", CP_REAL, &scale, 0)) scale = 1; - switch(param) - { case BSIM4v6_W: + switch (param) { + case BSIM4v6_W: here->BSIM4v6w = value->rValue*scale; here->BSIM4v6wGiven = TRUE; break; @@ -182,8 +182,10 @@ IFvalue *select) here->BSIM4v6icVBSGiven = TRUE; break; case BSIM4v6_IC: - switch(value->v.numValue) - { case 3: + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { + case 3: here->BSIM4v6icVBS = *(value->v.vec.rVec+2); here->BSIM4v6icVBSGiven = TRUE; /* FALLTHROUGH */ diff --git a/src/spicelib/devices/bsim4v7/b4v7par.c b/src/spicelib/devices/bsim4v7/b4v7par.c index 776d494bc..5e42f1596 100644 --- a/src/spicelib/devices/bsim4v7/b4v7par.c +++ b/src/spicelib/devices/bsim4v7/b4v7par.c @@ -37,8 +37,8 @@ IFvalue *select) if (!cp_getvar("scale", CP_REAL, &scale, 0)) scale = 1; - switch(param) - { case BSIM4v7_W: + switch (param) { + case BSIM4v7_W: here->BSIM4v7w = value->rValue * scale; here->BSIM4v7wGiven = TRUE; break; @@ -186,8 +186,10 @@ IFvalue *select) here->BSIM4v7icVBSGiven = TRUE; break; case BSIM4v7_IC: - switch(value->v.numValue) - { case 3: + /* FALLTHROUGH added to suppress GCC warning due to + * -Wimplicit-fallthrough flag */ + switch (value->v.numValue) { + case 3: here->BSIM4v7icVBS = *(value->v.vec.rVec+2); here->BSIM4v7icVBSGiven = TRUE; /* FALLTHROUGH */