Changeset dc12262 in mainline for boot/generic/src/printf_core.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
  • boot/generic/src/printf_core.c

    r93ad8166 rdc12262  
    681681                                /* Pointer */
    682682                                flags |= __PRINTF_FLAG_BIGCHARS;
     683                                /* Fallthrough */
    683684                        case 'p':
    684685                                flags |= __PRINTF_FLAG_PREFIX;
     
    696697                        case 'i':
    697698                                flags |= __PRINTF_FLAG_SIGNED;
     699                                /* Fallthrough */
    698700                        case 'u':
    699701                                break;
    700702                        case 'X':
    701703                                flags |= __PRINTF_FLAG_BIGCHARS;
     704                                /* Fallthrough */
    702705                        case 'x':
    703706                                base = 16;
Note: See TracChangeset for help on using the changeset viewer.