[PATCH 6/6] Fixed Visual Studio C4456 compiler warnings related to
variable name hiding another variable and reduced scopes of arg and sarg variables in the process
This commit is contained in:
parent
34c2df11bb
commit
86ed788025
|
|
@ -29,7 +29,6 @@ MOS1load(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
double GateSourceOverlapCap;
|
double GateSourceOverlapCap;
|
||||||
double OxideCap;
|
double OxideCap;
|
||||||
double SourceSatCur;
|
double SourceSatCur;
|
||||||
double arg;
|
|
||||||
double cbhat;
|
double cbhat;
|
||||||
double cdhat;
|
double cdhat;
|
||||||
double cdrain;
|
double cdrain;
|
||||||
|
|
@ -51,7 +50,6 @@ MOS1load(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
double gcgd;
|
double gcgd;
|
||||||
double gcgs;
|
double gcgs;
|
||||||
double geq;
|
double geq;
|
||||||
double sarg;
|
|
||||||
double sargsw;
|
double sargsw;
|
||||||
double vbd;
|
double vbd;
|
||||||
double vbs;
|
double vbs;
|
||||||
|
|
@ -568,7 +566,8 @@ next1: if(vbs <= -3*vt) {
|
||||||
/* can't bypass the diode capacitance calculations */
|
/* can't bypass the diode capacitance calculations */
|
||||||
if(here->MOS1Cbs != 0 || here->MOS1Cbssw != 0 ) {
|
if(here->MOS1Cbs != 0 || here->MOS1Cbssw != 0 ) {
|
||||||
if (vbs < here->MOS1tDepCap){
|
if (vbs < here->MOS1tDepCap){
|
||||||
arg=1-vbs/here->MOS1tBulkPot;
|
const double arg=1-vbs/here->MOS1tBulkPot;
|
||||||
|
double sarg;
|
||||||
/*
|
/*
|
||||||
* the following block looks somewhat long and messy,
|
* the following block looks somewhat long and messy,
|
||||||
* but since most users use the default grading
|
* but since most users use the default grading
|
||||||
|
|
@ -628,7 +627,8 @@ next1: if(vbs <= -3*vt) {
|
||||||
{
|
{
|
||||||
if(here->MOS1Cbd != 0 || here->MOS1Cbdsw != 0 ) {
|
if(here->MOS1Cbd != 0 || here->MOS1Cbdsw != 0 ) {
|
||||||
if (vbd < here->MOS1tDepCap) {
|
if (vbd < here->MOS1tDepCap) {
|
||||||
arg=1-vbd/here->MOS1tBulkPot;
|
const double arg=1-vbd/here->MOS1tBulkPot;
|
||||||
|
double sarg;
|
||||||
/*
|
/*
|
||||||
* the following block looks somewhat long and messy,
|
* the following block looks somewhat long and messy,
|
||||||
* but since most users use the default grading
|
* but since most users use the default grading
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue