Changeset 90c340fb in mainline
- Timestamp:
- 2017-10-26T23:44:55Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 37e8c4a
- Parents:
- e4c8e3cf
- Location:
- uspace/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usb.c
re4c8e3cf r90c340fb 35 35 36 36 #include <async.h> 37 #include <assert.h> 37 38 #include <macros.h> 38 39 #include <errno.h> … … 169 170 } 170 171 171 int static_assert[sizeof(sysarg_t) >= 4 ? 1 : -1]; 172 static_assert(sizeof(sysarg_t) >= 4); 173 172 174 typedef union { 173 175 uint8_t arr[sizeof(sysarg_t)]; -
uspace/lib/usb/include/usb/request.h
re4c8e3cf r90c340fb 37 37 38 38 #include <stdint.h> 39 #include <assert.h> 39 40 40 41 /** Standard device request. */ … … 107 108 } __attribute__ ((packed)) usb_device_request_setup_packet_t; 108 109 109 int assert[(sizeof(usb_device_request_setup_packet_t) == 8) ? 1: -1];110 static_assert(sizeof(usb_device_request_setup_packet_t) == 8); 110 111 111 112 int usb_request_needs_toggle_reset(
Note:
See TracChangeset
for help on using the changeset viewer.