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/07/28 08:22:58 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6725: include: Fixed null struct may caused build issue.

xiaoxiang781216 commented on code in PR #6725:
URL: https://github.com/apache/incubator-nuttx/pull/6725#discussion_r931923559


##########
include/nuttx/net/netdev.h:
##########
@@ -272,6 +272,7 @@ struct net_driver_s
 
     struct netdev_varaddr_s radio;
 #endif
+    uint8_t unused;            /* fix compile issue if all above defines are valid */

Review Comment:
   let's guard the whole union by:
   ```
    #if defined(CONFIG_NET_ETHERNET) || defined(CONFIG_NET_6LOWPAN) || \
         defined(CONFIG_NET_BLUETOOTH) || defined(CONFIG_NET_IEEE802154)
   ```



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