From 238c8d1f08bc0b9bab073d3bf0b33c725ed8458d Mon Sep 17 00:00:00 2001 From: tfateba Date: Wed, 4 Jan 2017 15:08:58 +0000 Subject: [PATCH] Fixed AVR ADC Warning (Control reaches end of non void function. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10012 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/AVR/hal_adc_lld.c | 1 + 1 file changed, 1 insertion(+) diff --git a/os/hal/ports/AVR/hal_adc_lld.c b/os/hal/ports/AVR/hal_adc_lld.c index 4ea634c8f..62848d4a4 100644 --- a/os/hal/ports/AVR/hal_adc_lld.c +++ b/os/hal/ports/AVR/hal_adc_lld.c @@ -57,6 +57,7 @@ static size_t getAdcChannelNumberFromMask(uint8_t mask, uint8_t currentChannel) } /* error, should never reach this line */ + return -1; // To check } static void setAdcChannel(uint8_t channelNum) {