You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/01 17:48:57 UTC

(nuttx-apps) 04/09: system/uorb: fix compile warning

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

commit 686bab3160cb9714f52ac9bc30f00df12d4bb944
Author: dongjiuzhu1 <do...@xiaomi.com>
AuthorDate: Tue Jun 4 14:54:00 2024 +0800

    system/uorb: fix compile warning
    
    apps/system/uorb/listener.c:543:38:
    warning: unused parameter 'file' [-Wunused-parameter]
                               FAR FILE *file)
    
    Signed-off-by: dongjiuzhu1 <do...@xiaomi.com>
---
 system/uorb/listener.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/system/uorb/listener.c b/system/uorb/listener.c
index fa310e0f1..83b8efb17 100644
--- a/system/uorb/listener.c
+++ b/system/uorb/listener.c
@@ -551,6 +551,8 @@ static int listener_record(FAR const struct orb_metadata *meta, int fd,
     {
       ret = orb_fprintf(file, meta->o_format, buffer);
     }
+#else
+  (void)file;
 #endif
 
   return ret;