You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "fxysunshine (via GitHub)" <gi...@apache.org> on 2024/09/28 14:08:00 UTC

[PR] toolchain/ghs: Fix green hills toolchain build Vela warnings [nuttx-apps]

fxysunshine opened a new pull request, #2620:
URL: https://github.com/apache/nuttx-apps/pull/2620

   ## Summary
   fix two compiling warning in non-GNU compilers.
   
   1. variable never used
   Building C object apps/CMakeFiles/apps.dir/nshlib/nsh_alias.c.o
   "apps/nshlib/nsh_alias.c", line 395: warning #550-D: variable "option" was set but never used
        int option;
   
   2. in 32-bit system clock config
    "apps/testing/ostest/semtimed.c", line 80: warning #186-D:
              pointless comparison of unsigned integer with zero
        else if (tp->tv_sec < 0 || tp->tv_nsec < 0 ||
   
   ## Impact
   None
   
   ## Testing
   Greenhills compilers build
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org