Skip to content

warning: missing initializer for member 'esp_vfs_littlefs_conf_t::partition' [-Wmissing-field-initializers] #9044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
tbnobody opened this issue Dec 28, 2023 · 3 comments · Fixed by #9046
Closed
1 task done
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@tbnobody
Copy link

Board

ESP32 Dev Module

Device Description

Plain Module

Hardware Configuration

Nothing Attached

Version

v2.0.14

IDE Name

PlatformIO

Operating System

Windows 11

Flash frequency

N/A

PSRAM enabled

no

Upload speed

N/A

Description

When compiling with more strict gcc configurations (-Wall -Wextra -Wunused -Wmisleading-indentation -Wduplicated-cond -Wlogical-op -Wnull-dereference) I get the following warnings (or errors when compiling with -Werror)

It seems that the used IDF extended the esp_vfs_littlefs_conf_t type which is now not fully initialized.

C:/Users/Thomas/.platformio/packages/framework-arduinoespressif32/libraries/LittleFS/src/LittleFS.cpp: In member function 'bool fs::LittleFSFS::begin(bool, const char*, uint8_t, const char*)':
C:/Users/Thomas/.platformio/packages/framework-arduinoespressif32/libraries/LittleFS/src/LittleFS.cpp:86:5: warning: missing initializer for member 'esp_vfs_littlefs_conf_t::partition' [-Wmissing-field-initializers]      
     };
     ^
C:/Users/Thomas/.platformio/packages/framework-arduinoespressif32/libraries/LittleFS/src/LittleFS.cpp:86:5: warning: missing initializer for member 'esp_vfs_littlefs_conf_t::read_only' [-Wmissing-field-initializers]      
C:/Users/Thomas/.platformio/packages/framework-arduinoespressif32/libraries/LittleFS/src/LittleFS.cpp:86:5: warning: missing initializer for member 'esp_vfs_littlefs_conf_t::grow_on_mount' [-Wmissing-field-initializers]

Sketch

N/A

Debug Message

N/A

Other Steps to Reproduce

N/A

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@lbernstone
Copy link
Contributor

Can you test that PR to make sure it cleans up the warnings?

@Jason2866
Copy link
Collaborator

@lbernstone Tested, working.

@tbnobody
Copy link
Author

Can also confirm that this PR fixes the warnings!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants