Branch: Tag:

2018-02-12

2018-02-12 21:49:35 by Marcus Comstedt <marcus@mc.pp.se>

Fix spelling of FALLTHRU directive

The non-standard spelling "FALL_THROUGH" is not recognized by gcc 7.3.
Also, the comment must not contain any other text, or be placed inside
braces.

906:       case F_MAGIC_SET_INDEX:    res->node_info |= OPT_ASSIGNMENT; -  /* FALL_THROUGH */ +  /* FALLTHRU */    case F_MAGIC_INDEX:    case F_MAGIC_INDICES:    case F_MAGIC_VALUES:
1667:    }    }    } -  /* FALL_THROUGH */ +  /* FALLTHRU */       default:    if (Pike_compiler->compiler_pass == COMPILER_PASS_FIRST) {
3452:    "Soft cast with non-type.");    }    } -  /* FALL_THROUGH */ +  /* FALLTHRU */    case F_CAST:    /* Type-field is correct by definition. */    if (old_type) {
3913:    0, "Case value is not an enumerable type.");    }    } -  /* FALL_THROUGH */ +  /* FALLTHRU */    case F_CASE:    if (CAR(n) && (Pike_compiler->compiler_pass == COMPILER_PASS_LAST)) {    fix_type_field(CAR(n));
3924:    0, "Case value is not an enumerable type.");    }    } -  /* FALL_THROUGH */ +  /* FALLTHRU */    case F_INC_LOOP:    case F_DEC_LOOP:    case F_DEC_NEQ_LOOP:
4030:    /* Propagate the changed type all the way up to the apply node. */    n->parent->node_info |= OPT_TYPE_NOT_FIXED;    } -  /* FALL_THROUGH */ +  /* FALLTHRU */    case F_COMMA_EXPR:    if(!CAR(n) || CAR(n)->type==void_type_string)    {
4077:    break;       case F_CATCH: -  /* FALL_THROUGH */ +  /* FALLTHRU */    default:    copy_pike_type(n->type, mixed_type_string);    }