adafruit / ArduinoCore-samd

114 stars 116 forks source link

add -Werror=return-type for all warning options #315

Closed hathach closed 2 years ago

hathach commented 2 years ago

Fix dangerous issue where the function declared with return value does not return at all. Which could cause mis-matched issue on the execution stack. Force this as an error for all compiler warning option. See also https://forums.adafruit.com/viewtopic.php?f=62&t=186839