FALLTHROUGH added

This commit is contained in:
Jim Monte 2020-04-25 19:31:21 +02:00 committed by Holger Vogt
parent ca2be5dd41
commit 82f832351b
14 changed files with 70 additions and 42 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */