Changeset dc12262 in mainline for uspace/lib/usbhid/src


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/usbhid/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hiddescriptor.c

    r93ad8166 rdc12262  
    754754                case START_DELIMITER_SET:
    755755                        report_item->in_delimiter = INSIDE_DELIMITER_SET;
     756                        /* Fallthrough */
    756757                case OUTSIDE_DELIMITER_SET:
    757758                        extended_usage = ((report_item->usage_page) << 16);
  • uspace/lib/usbhid/src/hidpath.c

    r93ad8166 rdc12262  
    259259                        return 1;
    260260                }
     261                /* Fallthrough */
    261262
    262263        /* path is prefix of the report_path */
Note: See TracChangeset for help on using the changeset viewer.