Changeset dc12262 in mainline for uspace/drv


Ignore:
Timestamp:
2017-05-04T22:12:27Z (9 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/drv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/ohci_rh.c

    r93ad8166 rdc12262  
    407407        }
    408408        /* Fall through, for per port power */
     409        /* Fallthrough */
    409410        case USB_HUB_FEATURE_PORT_ENABLE:  /*1*/
    410411        case USB_HUB_FEATURE_PORT_SUSPEND: /*2*/
  • uspace/drv/nic/ar9271/hw.c

    r93ad8166 rdc12262  
    282282        case IEEE80211_OPMODE_AP:
    283283                set_bit |= AR9271_OPMODE_STATION_AP_MASK;
     284                /* Fallthrough */
    284285        case IEEE80211_OPMODE_STATION:
    285286                wmi_reg_clear_bit(ar9271->htc_device, AR9271_CONFIG,
Note: See TracChangeset for help on using the changeset viewer.