jerpelea opened a new pull request, #3697:
URL: https://github.com/apache/nuttx-apps/pull/3697

   ## Summary
   
   The g_rootdir[] table initialized each entry's struct dirent member 
positionally as { DTYPE_FILE, "FileN" }, which assumes d_type is the first 
field.  This breaks when struct dirent gains the POSIX d_ino field as its first 
member (see apache/nuttx: "fs/dirent: add d_ino member to struct dirent"): the 
file-name string would be assigned to d_type, producing -Wint-conversion 
warnings and an "initializer element is not computable at load time" error.
   
   Use designated initializers (.d_type / .d_name) so the table is robust 
against the field order of struct dirent.
   
   Also fix a 'Initiallly' typo in a nearby comment flagged by codespell.
   
   ## Impact
   
   RELEASE
   
   ## Testing
   
   CI


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to