Remove unreachable code
IAR generates warning Pe111 'statement is unreachable'. In a couple of cases, replace return statements with TU_ATTR_FALLTHROUGH; because some compilers apparently can't figure out that the return statements are unreachable but do whinge about an imagined fall-through without them!
This commit is contained in:
@@ -63,8 +63,6 @@ int main(void)
|
||||
led_blinking_task();
|
||||
usbtmc_app_task_iter();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@@ -254,7 +254,6 @@ void usbtmc_app_task_iter(void) {
|
||||
break;
|
||||
default:
|
||||
TU_ASSERT(false,);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user