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/08/04 07:48:47 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #6779: optimize UNUSED macro

xiaoxiang781216 commented on PR #6779:
URL: https://github.com/apache/incubator-nuttx/pull/6779#issuecomment-1204892664

   > I'm not sure about this change. For example if the parameter is `int` then would this change force the compiler to use the stack to obtain the parameter address (I mean when parameters are passed via registers)?
   
   Shouldn't, since first expression(1) short cut the second expression evaluation.
   
   > Could you please add a few simple examples for assembly generated with and without this change?
   
   Here is an example: https://github.com/apache/incubator-nuttx-apps/pull/1248
   `gip6` is a structure, `(void)a` is an invalid construction in this case.


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