You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/01 08:58:09 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #5647: assert.h: Don't use UNUSED macro since it's very easy happen conflict

xiaoxiang781216 commented on pull request #5647:
URL: https://github.com/apache/incubator-nuttx/pull/5647#issuecomment-1055176162


   > I see that `# define UNUSED(a) ((void)(1 || (a)))`, so why this change is needed?
   
   UNUSED is frequently redefined by many third party to something like this:
   ```
   # define UNUSED __attribute__((unused))
   ```
   Since assert(assert.h) is the most used macro, it's better to remove the dependence on UNUSED macro.


-- 
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