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

V2.0.14 compiler warnings #8756

Closed
1 task done
s60sc opened this issue Oct 11, 2023 · 3 comments
Closed
1 task done

V2.0.14 compiler warnings #8756

s60sc opened this issue Oct 11, 2023 · 3 comments

Comments

@s60sc
Copy link

s60sc commented Oct 11, 2023

Board

not specific

Device Description

not specific

Hardware Configuration

not specific

Version

v2.0.14

IDE Name

Arduino IDE

Operating System

Windows 10

Flash frequency

not specific

PSRAM enabled

yes

Upload speed

not specific

Description

C:\Users\b1sk1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32\esp32-hal-uart.c: In function 'uartSetPins':
C:\Users\b1sk1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32\esp32-hal-uart.c:153:9: warning: 'return' with no value, in function returning non-void
         return;
         ^~~~~~
C:\Users\b1sk1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32\esp32-hal-uart.c:149:6: note: declared here
 bool uartSetPins(uint8_t uart_num, int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t rtsPin)
      ^~~~~~~~~~~

C:\Users\b1sk1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\LittleFS\src\LittleFS.cpp: In member function 'bool fs::LittleFSFS::begin(bool, const char*, uint8_t, const char*)':
C:\Users\b1sk1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\LittleFS\src\LittleFS.cpp:86:5: warning: missing initializer for member 'esp_vfs_littlefs_conf_t::partition' [-Wmissing-field-initializers]
     };
     ^
C:\Users\b1sk1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\LittleFS\src\LittleFS.cpp:86:5: warning: missing initializer for member 'esp_vfs_littlefs_conf_t::read_only' [-Wmissing-field-initializers]
C:\Users\b1sk1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\LittleFS\src\LittleFS.cpp:86:5: warning: missing initializer for member 'esp_vfs_littlefs_conf_t::grow_on_mount' [-Wmissing-field-initializers]


Sketch

not specific

Debug Message

not specific

Other Steps to Reproduce

not specific

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@s60sc s60sc added the Status: Awaiting triage Issue is waiting for triage label Oct 11, 2023
@SuGlider
Copy link
Collaborator

There is a PR to solve it. Unfortunately, it was not included for 2.0.14, but it is merged within the 2.x branch:
https://github.com/espressif/arduino-esp32/tree/release/v2.x
You may want to apply it in your machine to the file C:\Users\b1sk1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32\esp32-hal-uart.c
#8644

@SuGlider SuGlider self-assigned this Oct 11, 2023
@SuGlider SuGlider added Type: Question Only question Status: Solved Peripheral: UART and removed Status: Awaiting triage Issue is waiting for triage labels Oct 11, 2023
@s60sc
Copy link
Author

s60sc commented Oct 11, 2023

Thanks

@s60sc s60sc closed this as completed Oct 11, 2023
@Leonleon33
Copy link

I apply 8644 to get rid of esp32-hal-uart.c warning.

But I still have the LittleFS.cpp:86:5 warnings
missing initializer for member 'esp_vfs_littlefs_conf_t::partition' , 'esp_vfs_littlefs_conf_t::read_only' and 'esp_vfs_littlefs_conf_t::grow_on_mount'

Is there a way to solve ?

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

No branches or pull requests

3 participants