diff options
| author | hathach <[email protected]> | 2014-03-13 23:52:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-13 23:52:26 +0700 |
| commit | 2502be94f7a35801ad6ff4570e5b1c949d024c75 (patch) | |
| tree | 119a20a2048629d0e2877b3e3e9b2dc8b7ae4e7b /tinyusb | |
| parent | 958512a5bd4a0826bd32df7d3740256504ab90d6 (diff) | |
suppres compiler warning transfer of control bypasses initialization
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/host/hub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tinyusb/host/hub.c b/tinyusb/host/hub.c index 823b3930b..72dd184ab 100644 --- a/tinyusb/host/hub.c +++ b/tinyusb/host/hub.c @@ -95,8 +95,10 @@ tusb_error_t hub_port_clear_feature_subtask(uint8_t hub_addr, uint8_t hub_port, SUBTASK_ASSERT_STATUS( error );
//------------- Check if feature is cleared -------------//
+ { // suppres compiler warning transfer of control bypasses initialization
hub_port_status_response_t * p_port_status = (hub_port_status_response_t *) hub_enum_buffer;
SUBTASK_ASSERT( !BIT_TEST_(p_port_status->status_change.value, feature-16) );
+ }
OSAL_SUBTASK_END
}
@@ -127,9 +129,11 @@ tusb_error_t hub_port_reset_subtask(uint8_t hub_addr, uint8_t hub_port) );
SUBTASK_ASSERT_STATUS( error );
+ { // suppres compiler warning transfer of control bypasses initialization
hub_port_status_response_t * p_port_status = (hub_port_status_response_t *) hub_enum_buffer;
SUBTASK_ASSERT ( p_port_status->status_change.reset && p_port_status->status_current.connect_status &&
p_port_status->status_current.port_power && p_port_status->status_current.port_enable);
+ }
OSAL_SUBTASK_END
}
|
