adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
606 stars 492 forks source link

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

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