Skip to content

esp32-hal-uart.c:153:9: warning: 'return' with no value, in function returning non-void #8641

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
deltaford opened this issue Sep 16, 2023 · 6 comments · Fixed by #8644
Closed
1 task done
Assignees
Labels
Status: Solved Type: Regression Result of unforeseen consequences of a previous change
Milestone

Comments

@deltaford
Copy link

Board

ESP32-S2

Device Description

ESP32-S2 Mini

Hardware Configuration

No

Version

v2.0.13

IDE Name

Arduino IDE 2.2.1

Operating System

Windows 10

Flash frequency

N/A

PSRAM enabled

yes

Upload speed

N/A

Description

Compile warning on 2.0.13 due to missing return value. Seem related to #8629

Sketch

N/A

Debug Message

_C:\Users\Stefan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\cores\esp32\esp32-hal-uart.c: In function 'uartSetPins':
C:\Users\Stefan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\cores\esp32\esp32-hal-uart.c:153:9: warning: 'return' with no value, in function returning non-void
         return;
         ^~~~~~
C:\Users\Stefan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\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)_

Other Steps to Reproduce

No response

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@deltaford deltaford added the Status: Awaiting triage Issue is waiting for triage label Sep 16, 2023
@Jason2866 Jason2866 added Type: Regression Result of unforeseen consequences of a previous change and removed Status: Awaiting triage Issue is waiting for triage labels Sep 16, 2023
@SuGlider SuGlider linked a pull request Sep 16, 2023 that will close this issue
@SuGlider
Copy link
Collaborator

It doesn't prevent to build the firmware, but prints a warning message.
With this fix, the warning message won't be displayed anymore.

This issue doesn't affect the uartSetPins() function because it only happens in the case that the HAL level is used with a UART number higher than the limit, which is very improbable.

@me-no-dev - I see no need for a new release.

@SuGlider
Copy link
Collaborator

@me-no-dev / @P-R-O-C-H-Y
I was wondering if we need to increase the warning-error check setting in CI.
These messages should be picked up in the CI.

@mikrocoder
Copy link

This should definitely be rectified. Basically, this is not a warning but a serious error.

@lbernstone
Copy link
Contributor

It has been fixed in master, and will be released soonish. If you want a fix today, you can patch in the pull request above (or just edit the file).

@SuGlider
Copy link
Collaborator

The PR #8644 fixed this issue (just a warning message).
It is already in the release/v2.x branch and in master branch:

This is not in the 2.0.14 release package, but if the user set the 3.0.0-Alpha Core in the Arduino IDE, the fix will be there already.

Therefore, the issue can be closed.

@SuGlider
Copy link
Collaborator

In case we release a final Arduino Core 2.0.15 version with all the fixes from release/v2.x branch, it will be in the release package for the Arduino IDE users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Solved Type: Regression Result of unforeseen consequences of a previous change
Projects
Development

Successfully merging a pull request may close this issue.

6 participants