From 0ed4ca1767f5bbf723a2b2fc9e25f39353b960a0 Mon Sep 17 00:00:00 2001 From: Neo Xu Date: Fri, 11 Oct 2024 15:15:20 +0800 Subject: [PATCH] noteprintf: fix compile warnings noteprintf_main.c:52:7: warning: unused variable 'binary' [-Wunused-variable] 52 | } binary = Fix typo of sched. Signed-off-by: Neo Xu --- examples/noteprintf/noteprintf_main.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/examples/noteprintf/noteprintf_main.c b/examples/noteprintf/noteprintf_main.c index 5a9df5d4a..6e1e73a9b 100644 --- a/examples/noteprintf/noteprintf_main.c +++ b/examples/noteprintf/noteprintf_main.c @@ -45,17 +45,7 @@ int main(int argc, FAR char *argv[]) { - struct binary - { - uint8_t val1; - uint8_t val2; - } binary = - { - .val1 = 0x01, - .val2 = 0x02 - }; - - char *str = "shced note test"; + char *str = "sched note test"; int count = 0; char c = 1; short s = 2; @@ -80,7 +70,7 @@ int main(int argc, FAR char *argv[]) while (1) { sched_note_printf(NOTE_TAG_ALWAYS, - "shced note test count = %d.", count++); + "sched note test count = %d.", count++); sched_note_mark(NOTE_TAG_ALWAYS, str); sched_note_printf(NOTE_TAG_ALWAYS, "%hhd", c); sched_note_printf(NOTE_TAG_ALWAYS, "%hd", s);