Skip to content
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

Compiler warning, Debug_WM, %5lu should be %5u #1798

Open
Dario503 opened this issue Feb 4, 2025 · 0 comments
Open

Compiler warning, Debug_WM, %5lu should be %5u #1798

Dario503 opened this issue Feb 4, 2025 · 0 comments

Comments

@Dario503
Copy link

Dario503 commented Feb 4, 2025

.pio/libdeps/esp32-s3-wroom-N8R8/WiFiManager/WiFiManager.cpp:150:100:   required from here
.pio/libdeps/esp32-s3-wroom-N8R8/WiFiManager/WiFiManager.cpp:3405:23: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t' {aka 'unsigned int'} [-Werror=format=]
     _debugPort.printf("[MEM] free: %5lu | max: %5u | frag: %3u%% \n", free, max, frag);

Changing %5lu to %5u eliminates all -Wall warnings.

_debugPort.printf("[MEM] free: %5u | max: %5u | frag: %3u%% \n", free, max, frag);

//_debugPort.printf("[MEM] free: %5lu | max: %5u | frag: %3u%% \n", free, max, frag);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant