Skip to content

Conversation

earlephilhower
Copy link
Owner

Fixes #236

Compiler warning flags were completely ignored/missed in platform.txt.
Add them, as normal, and include -Werror=return-type because GCC will
produce crashing apps when a function return value is missing.

Fixes #236

Compiler warning flags were completely ignored/missed in platform.txt.
Add them, as normal, and include -Werror=return-type because GCC will
produce crashing apps when a function return value is missing.
@earlephilhower earlephilhower merged commit ebd2289 into master Jul 4, 2021
@earlephilhower earlephilhower deleted the babba branch July 4, 2021 19:31
schkovich pushed a commit to schkovich/arduino-pico that referenced this pull request May 24, 2025
We can't really use traditional include guards, because the header file may be piped to stdout (which means we might not have a file name).
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

Successfully merging this pull request may close these issues.

Calling a value returning function that doesn't actually return anything crashes the program
1 participant