Skip to content

Commit a826023

Browse files
Enable warning/error on missing return statement
Fixes esp8266#8475 We disable all errors for `None` mode, so manually re-enable the return-type check as an error (because the code behavior is undefined and will crash the core).
1 parent 4bd7b4d commit a826023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runtime.tools.cp={runtime.platform.path}/tools/cp.py
2222
runtime.tools.eboot={runtime.platform.path}/bootloaders/eboot/eboot.elf
2323

2424
compiler.warning_flags=-w -Werror=return-type
25-
compiler.warning_flags.none=-w -Werror=return-type
25+
compiler.warning_flags.none=-w -Wreturn-type -Werror=return-type
2626
compiler.warning_flags.default=-Werror=return-type
2727
compiler.warning_flags.more=-Wall -Werror=return-type
2828
compiler.warning_flags.all=-Wall -Wextra -Werror=return-type

0 commit comments

Comments
 (0)