Changeset dc12262 in mainline for uspace/lib/posix/source/stdlib


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)

Location:
uspace/lib/posix/source/stdlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/stdlib/strtol.c

    r93ad8166 rdc12262  
    142142                    :(((uintmax_t) -(min_value + 1)) + 1);
    143143               
    144                 /* fallthrough */
     144                /* Fallthrough */
    145145        case '+':
    146146                i++;
  • uspace/lib/posix/source/stdlib/strtold.c

    r93ad8166 rdc12262  
    423423        case '-':
    424424                negative = true;
    425                 /* fallthrough */
     425                /* Fallthrough */
    426426        case '+':
    427427                i++;
Note: See TracChangeset for help on using the changeset viewer.