Skip to content

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

Closed
@deltaford

Description

@deltaford

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions