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/lib/posix/source/stdio/scanf.c

    r93ad8166 rdc12262  
    466466        case 'S':
    467467                *modifier = LMOD_l;
    468                 /* fallthrough */
     468                /* Fallthrough */
    469469        case 's':
    470470                return 1;
    471471        case 'C':
    472472                *modifier = LMOD_l;
    473                 /* fallthrough */
     473                /* Fallthrough */
    474474        case 'c':
    475475                return 1;
Note: See TracChangeset for help on using the changeset viewer.