suppres compiler warning transfer of control bypasses initialization

This commit is contained in:
hathach
2014-03-13 23:52:26 +07:00
parent 958512a5bd
commit 2502be94f7
2 changed files with 8 additions and 1 deletions

View File

@@ -149,9 +149,12 @@ OSAL_TASK_FUNCTION( msc_app_task ) (void* p_task_para)
{
OSAL_TASK_LOOP_BEGIN
bool is_any_disk_mounted;
osal_task_delay(10);
bool is_any_disk_mounted = false;
is_any_disk_mounted = false;
for(uint8_t phy_disk=0; phy_disk < TUSB_CFG_HOST_DEVICE_MAX; phy_disk++)
{
if ( disk_is_ready(phy_disk) )