arsdever / arsdever/HEX

src/hex.h:107:1: error: control reaches end of non-void function

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I noticed the switch statement doesn't have a default. It's always a good rule of thumb to include a default statement when using a switch. I added the following and it cleared the error for me. Beware it's untested

default:
return NULL;
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Open src/hex.h at line 107 and inspect the switch statement that reaches the end of a non-void function. Add the missing fallback return described in the issue, then compile the Arduino library to confirm the error is gone and the switch returns a value on every path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.