This is an automated email from the ASF dual-hosted git repository. cederom pushed a commit to branch releases/12.7 in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 0ed4ca1767f5bbf723a2b2fc9e25f39353b960a0 Author: Neo Xu <[email protected]> AuthorDate: Fri Oct 11 15:15:20 2024 +0800 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 <[email protected]> --- 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);
