Changeset dc12262 in mainline for uspace/app/sbi/src/run_expr.c


Ignore:
Timestamp:
2017-05-04T22:12:27Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e141281
Parents:
93ad8166
Message:

add standardized case fallthrough comment annotations, add actual missing breaks

GCC 7.1's attribute((fallthrough)) would be more elegant, but unfortunatelly this annotation is incompatible with previous versions of GCC (it generates an empty declaration error)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/run_expr.c

    r93ad8166 rdc12262  
    285285                /* It is not possible to reference a constructor explicitly. */
    286286                assert(b_false);
     287                /* Fallthrough */
    287288        case sc_enum:
    288289#ifdef DEBUG_RUN_TRACE
     
    765766        case bo_mult:
    766767                assert(b_false);
     768                /* Fallthrough */
    767769
    768770        case bo_equal:
     
    840842        case bo_mult:
    841843                assert(b_false);
     844                /* Fallthrough */
    842845
    843846        case bo_equal:
     
    944947        case bo_mult:
    945948                assert(b_false);
     949                /* Fallthrough */
    946950
    947951        case bo_equal:
     
    12291233        case uo_minus:
    12301234                assert(b_false);
     1235                /* Fallthrough */
    12311236
    12321237        case uo_not:
     
    17611766                /* It is not possible to reference a constructor explicitly. */
    17621767                assert(b_false);
     1768                /* Fallthrough */
    17631769        case sc_deleg:
    17641770                printf("Error: Accessing object member which is a delegate.\n");
     
    18741880                /* It is not possible to reference a constructor explicitly. */
    18751881                assert(b_false);
     1882                /* Fallthrough */
    18761883        case sc_deleg:
    18771884                printf("Error: Accessing object member which is a delegate.\n");
Note: See TracChangeset for help on using the changeset viewer.