This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new d91e3db9f noteprintf: fix compile warnings
d91e3db9f is described below

commit d91e3db9fdcdf39aef3da67017606da5f70ad689
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);

Reply via email to