From 83d1de00fe935ae5444718679835ee0f38637ca2 Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 1 Oct 2010 18:06:40 +0000 Subject: [PATCH] bugfix, missing return(OK) in some switch statements --- ChangeLog | 7 +++++++ src/spicelib/devices/hfet1/hfetmask.c | 1 + src/spicelib/devices/hfet2/hfet2mask.c | 1 + src/spicelib/devices/mes/mesmask.c | 1 + src/spicelib/devices/mesa/mesamask.c | 1 + 5 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index a415e42a0..ae8e83e9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-10-01 Robert Larice + * src/spicelib/devices/hfet1/hfetmask.c , + * src/spicelib/devices/hfet2/hfet2mask.c , + * src/spicelib/devices/mes/mesmask.c , + * src/spicelib/devices/mesa/mesamask.c : + bugfix, missing return(OK) in some switch statements + 2010-09-30 Robert Larice * configure.ac , * src/include/defines.h : diff --git a/src/spicelib/devices/hfet1/hfetmask.c b/src/spicelib/devices/hfet1/hfetmask.c index 45cccda81..1865bc082 100644 --- a/src/spicelib/devices/hfet1/hfetmask.c +++ b/src/spicelib/devices/hfet1/hfetmask.c @@ -233,6 +233,7 @@ HFETAmAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value) value->sValue = "nhfet"; else value->sValue = "phfet"; + return (OK); default: return (E_BADPARM); } diff --git a/src/spicelib/devices/hfet2/hfet2mask.c b/src/spicelib/devices/hfet2/hfet2mask.c index b38d572d2..7f807199d 100644 --- a/src/spicelib/devices/hfet2/hfet2mask.c +++ b/src/spicelib/devices/hfet2/hfet2mask.c @@ -148,6 +148,7 @@ HFET2mAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value) value->sValue = "nhfet"; else value->sValue = "phfet"; + return (OK); default: return (E_BADPARM); } diff --git a/src/spicelib/devices/mes/mesmask.c b/src/spicelib/devices/mes/mesmask.c index 32521f5cc..68a5af077 100644 --- a/src/spicelib/devices/mes/mesmask.c +++ b/src/spicelib/devices/mes/mesmask.c @@ -73,6 +73,7 @@ MESmAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value) value->sValue = "nmf"; else value->sValue = "pmf"; + return (OK); default: return (E_BADPARM); } diff --git a/src/spicelib/devices/mesa/mesamask.c b/src/spicelib/devices/mesa/mesamask.c index 40a0c6f19..919c883cf 100644 --- a/src/spicelib/devices/mesa/mesamask.c +++ b/src/spicelib/devices/mesa/mesamask.c @@ -211,6 +211,7 @@ MESAmAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value) value->sValue = "nmf"; else value->sValue = "pmf"; + return (OK); default: return (E_BADPARM); }