summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-05-30 00:46:16 +0700
committerhathach <[email protected]>2026-05-30 00:46:16 +0700
commitfc933e341df29e2ab6fa62508d45a92c65a621fb (patch)
tree6d59b85ac42f51bb6d7d1e909f575322fe4a2ce5 /examples
parent0761df7420df3e62041f17e0c3e0f49d98b0667c (diff)
midi2_host: silence IAR Pe550 for midi2_idx
The variable is set in mount/umount callbacks but not read elsewhere in the example (rx_cb already receives idx as a parameter). IAR treats Pe550 as an error under --warnings_are_errors. Tag it TU_ATTR_UNUSED so the example still shows the pattern of tracking the device index without erroring on unused-set. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Diffstat (limited to 'examples')
-rw-r--r--examples/host/midi2_host/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/host/midi2_host/src/main.c b/examples/host/midi2_host/src/main.c
index 3d5938a2d..d81e77a33 100644
--- a/examples/host/midi2_host/src/main.c
+++ b/examples/host/midi2_host/src/main.c
@@ -35,7 +35,7 @@
// State
//--------------------------------------------------------------------+
-static uint8_t midi2_idx = 0xFF;
+TU_ATTR_UNUSED static uint8_t midi2_idx = 0xFF;
//--------------------------------------------------------------------+
// UMP printer - shows MT and word(s) in hex; decodes Channel Voice