johannes-nivus edited a comment on issue #553: Fix a few nxstyle complaints in arm hostfs URL: https://github.com/apache/incubator-nuttx/pull/553#issuecomment-598117026 Named struct initializers are a C99 feature if I recall correctly. So not allowed according to coding standard: "NuttX generally follows C89 and all code outside of architecture specific directories must be compatible with C89" Nevertheless you could argue that arch/arm/src/common is architecture specific. Without trying, is the following compiling correctly? ``` struct { const char *pathname; long mode; size_t len; } open = { pathname, host_flags_to_mode(flags), strlen(pathname) }; ``` Edit: I see nxstyle is complaining as well without named initializers. I will take a look that afternoon.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
