You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to utilize littlefs in my project, but it seems there are times when incomplete struct types are being used. The problem is they're being declared in a nested struct definition and apparently my flavor or version of embedded GCC tool chain isn't too happy about it. The fix is fairly simple for example, to fix the mentioned issue above we can simply change the following,
And all is well. I am going to be doing this myself for my project, but would prefer to see it also applied upstream as well. There are several other places that this occurs and I can't see why declaring the structs this way would be an issue, though I could be missing something here. Let me know what you think.
The text was updated successfully, but these errors were encountered:
I guess I could bundle all of my "issues" under the heading of C89 support.
geky
changed the title
invalid use of incomplete type ‘struct lfs_disk_dir’ and other instances.
C89: invalid use of incomplete type ‘struct lfs_disk_dir’ and other instances.
Mar 17, 2018
Sorry, but littlefs is decidedly C99. Features such as designated initializers, inline functions, loop initializers, // comments, are just too convenient and heavily used in the library.
Out of curiosity, what environment are you in that prevents C99?
I am attempting to utilize littlefs in my project, but it seems there are times when incomplete struct types are being used. The problem is they're being declared in a nested struct definition and apparently my flavor or version of embedded GCC tool chain isn't too happy about it. The fix is fairly simple for example, to fix the mentioned issue above we can simply change the following,
to
And all is well. I am going to be doing this myself for my project, but would prefer to see it also applied upstream as well. There are several other places that this occurs and I can't see why declaring the structs this way would be an issue, though I could be missing something here. Let me know what you think.
The text was updated successfully, but these errors were encountered: