Ignore:
Timestamp:
2017-05-04T22:12:27Z (8 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
  • kernel/generic/src/printf/printf_core.c

    r93ad8166 rdc12262  
    815815                                /* Pointer */
    816816                                flags |= __PRINTF_FLAG_BIGCHARS;
     817                                /* Fallthrough */
    817818                        case 'p':
    818819                                flags |= __PRINTF_FLAG_PREFIX;
     
    830831                        case 'i':
    831832                                flags |= __PRINTF_FLAG_SIGNED;
     833                                /* Fallthrough */
    832834                        case 'u':
    833835                                break;
    834836                        case 'X':
    835837                                flags |= __PRINTF_FLAG_BIGCHARS;
     838                                /* Fallthrough */
    836839                        case 'x':
    837840                                base = 16;
Note: See TracChangeset for help on using the changeset viewer.