Changeset 1cf26ab in mainline for uspace/drv/bus/usb/uhci/uhci_batch.c


Ignore:
Timestamp:
2016-05-14T06:44:37Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
362654a
Parents:
1023758
Message:

Use static assert instead of regular ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/uhci_batch.c

    r1023758 r1cf26ab  
    8787uhci_transfer_batch_t * uhci_transfer_batch_get(usb_transfer_batch_t *usb_batch)
    8888{
    89         assert((sizeof(td_t) % 16) == 0);
     89        static_assert((sizeof(td_t) % 16) == 0);
    9090#define CHECK_NULL_DISPOSE_RETURN(ptr, message...) \
    9191        if (ptr == NULL) { \
Note: See TracChangeset for help on using the changeset viewer.