removed compiler warning by returning 0 at undefined value

This commit is contained in:
fros4943 2009-01-23 17:08:17 +00:00
parent 7e5047012b
commit 603740b13b

View file

@ -26,14 +26,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: acc-sensor.c,v 1.1 2009/01/15 21:06:02 adamdunkels Exp $ * $Id: acc-sensor.c,v 1.2 2009/01/23 17:08:17 fros4943 Exp $
* *
* ----------------------------------------------------------------- * -----------------------------------------------------------------
* *
* Author : Adam Dunkels, Joakim Eriksson, Niclas Finne * Author : Adam Dunkels, Joakim Eriksson, Niclas Finne
* Created : 2005-11-01 * Created : 2005-11-01
* Updated : $Date: 2009/01/15 21:06:02 $ * Updated : $Date: 2009/01/23 17:08:17 $
* $Revision: 1.1 $ * $Revision: 1.2 $
*/ */
#include "dev/acc-sensor.h" #include "dev/acc-sensor.h"
@ -111,6 +111,7 @@ value(int type)
case 2: case 2:
return ADC12MEM4; return ADC12MEM4;
} }
return 0;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static int static int