From 1d3bd15c5ce9d24ba5d0a4ba2e26c172505bf64c Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 29 Apr 2011 21:04:30 +0000 Subject: [PATCH] minor bug fix (broken diagnostic printout) and swallow some warnings --- ChangeLog | 5 +++++ src/spicelib/devices/hisimhv/hsmhvnoi.c | 3 --- src/spicelib/devices/hisimhv/hsmhvset.c | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3360713c3..e7799c7ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-04-29 Robert Larice + * src/spicelib/devices/hisimhv/hsmhvnoi.c , + * src/spicelib/devices/hisimhv/hsmhvset.c : + minor bug fix (broken diagnostic printout) and swallow some warnings + 2011-04-29 Robert Larice * src/spicelib/devices/hisimhv/hsmhvdef.h : hisimhv implementation, ngspice has one more slot (GENowner) in GENinstance diff --git a/src/spicelib/devices/hisimhv/hsmhvnoi.c b/src/spicelib/devices/hisimhv/hsmhvnoi.c index c2d69a07d..4888539be 100644 --- a/src/spicelib/devices/hisimhv/hsmhvnoi.c +++ b/src/spicelib/devices/hisimhv/hsmhvnoi.c @@ -37,9 +37,6 @@ * all of the MOSFET's is summed with the variable "OnDens". */ -extern void NevalSrc(); -extern double Nintegrate(); - int HSMHVnoise ( int mode, int operation, GENmodel *inModel, diff --git a/src/spicelib/devices/hisimhv/hsmhvset.c b/src/spicelib/devices/hisimhv/hsmhvset.c index ca5dfeac0..a9fe0659e 100644 --- a/src/spicelib/devices/hisimhv/hsmhvset.c +++ b/src/spicelib/devices/hisimhv/hsmhvset.c @@ -36,7 +36,7 @@ #define RANGECHECK(param, min, max, pname) \ if ( (param) < (min) || (param) > (max) ) { \ printf("warning(HiSIMHV): The model/instance parameter %s (= %e) must be in the range [%e , %e].\n", \ - (pname), (param), (min), (max) ); \ + (pname), (param), (double) (min), (double) (max) ); \ } #define MINCHECK(param, min, pname) \ if ( (param) < (min) ) { \