FALLTHROUGH

This commit is contained in:
Jim Monte 2020-04-25 19:41:59 +02:00 committed by Holger Vogt
parent 41819a7226
commit 8d16e3e034
2 changed files with 6 additions and 1 deletions

View File

@ -27,6 +27,8 @@ CKTdisto (CKTcircuit *ckt, int mode)
int error=0;
int size;
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch(mode) {
case D_SETUP:
@ -63,7 +65,7 @@ CKTdisto (CKTcircuit *ckt, int mode)
case D_RHSF1:
job->Df2given = 0; /* will change if any F2 source is found */
/* FALLTHROUGH */
case D_RHSF2:

View File

@ -1477,6 +1477,8 @@ void free_tree(INPparseNode *pt)
controlled_exit(1);
}
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (pt->type) {
case PT_TIME:
case PT_TEMPERATURE:
@ -1493,6 +1495,7 @@ void free_tree(INPparseNode *pt)
case PT_COMMA:
case PT_TERN:
dec_usage(pt->right);
/* FALLTHROUGH */
case PT_FUNCTION:
dec_usage(pt->left);
break;