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:
Ben Avison
2022-09-05 12:53:49 +01:00
parent 16518dcbbb
commit 65ba15c37d
23 changed files with 5 additions and 54 deletions

View File

@@ -68,8 +68,6 @@ int main(void)
hid_app_task();
#endif
}
return 0;
}
//--------------------------------------------------------------------+