diff options
| author | Ben Avison <[email protected]> | 2022-09-05 12:53:49 +0100 |
|---|---|---|
| committer | Ben Avison <[email protected]> | 2022-09-13 18:00:50 +0100 |
| commit | 65ba15c37d50fa470fa24c38dbf0e30eba3147c0 (patch) | |
| tree | 0a256668b5f4e70d9a1d5669d41027ed3c4ba9d0 /examples/device/usbtmc | |
| parent | 16518dcbbb6f20182a6f69556908afe35a7f6e25 (diff) | |
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!
Diffstat (limited to 'examples/device/usbtmc')
| -rw-r--r-- | examples/device/usbtmc/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/usbtmc/src/usbtmc_app.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/examples/device/usbtmc/src/main.c b/examples/device/usbtmc/src/main.c index 6945d8743..8fc06b56c 100644 --- a/examples/device/usbtmc/src/main.c +++ b/examples/device/usbtmc/src/main.c @@ -63,8 +63,6 @@ int main(void) led_blinking_task(); usbtmc_app_task_iter(); } - - return 0; } //--------------------------------------------------------------------+ diff --git a/examples/device/usbtmc/src/usbtmc_app.c b/examples/device/usbtmc/src/usbtmc_app.c index 115163c7f..e1ce115ad 100644 --- a/examples/device/usbtmc/src/usbtmc_app.c +++ b/examples/device/usbtmc/src/usbtmc_app.c @@ -254,7 +254,6 @@ void usbtmc_app_task_iter(void) { break; default: TU_ASSERT(false,); - return; } } |
