mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Add errors on invalid/missing function return type (#8165)
GCC 10.x seems to have a knack for crashing when a function which is declared to return a value does not. Add a warning, present on all builds, when this is the case. For more info see https://github.com/esp8266/Arduino/discussions/8160 Thanks to @hreintke and @mcspr for the tips.
This commit is contained in:
committed by
GitHub
parent
d3136738ad
commit
90b4c6f299
@ -62,6 +62,7 @@ env.Append(
|
||||
"-std=gnu17",
|
||||
"-Wpointer-arith",
|
||||
"-Wno-implicit-function-declaration",
|
||||
"-Werror=return-type",
|
||||
"-Wl,-EL",
|
||||
"-fno-inline-functions",
|
||||
"-nostdlib"
|
||||
|
Reference in New Issue
Block a user