anchao opened a new pull request, #15944:
URL: https://github.com/apache/nuttx/pull/15944

   ## Summary
   
   libc/strings: fix compile warning if enable -Wshadow
   
   Replace inline functions with macros to avoid confilcts with builtin 
definition
   
   ```
   nuttx/include/strings.h:80:28: warning: declaration of 'ffs' shadows a 
built-in function [-Wshadow]
      80 | static inline_function int ffs(int j)
         |                            ^~~
   nuttx/include/strings.h:94:28: warning: declaration of 'ffsl' shadows a 
built-in function [-Wshadow]
      94 | static inline_function int ffsl(long j)
         |                            ^~~~
   nuttx/include/strings.h:109:28: warning: declaration of 'ffsll' shadows a 
built-in function [-Wshadow]
     109 | static inline_function int ffsll(long long j)
         |                            ^~~~~
   ```
   
   Signed-off-by: chao an <anchao.arc...@bytedance.com>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   ci-check


-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to