prevent few gcc warnings
This commit is contained in:
parent
a3380903be
commit
31a054f244
|
|
@ -116,13 +116,6 @@ void free_pj(const void *ptr);
|
|||
|
||||
FILE *fopen_with_path(const char *path, const char *mode);
|
||||
|
||||
#ifdef __GNUC__
|
||||
int cm_message_printf(const char *fmt, ...)
|
||||
__attribute__ ((format (__printf__, 1, 2)));
|
||||
#else
|
||||
int cm_message_printf(const char *fmt, ...);
|
||||
#endif
|
||||
|
||||
#define CM_IGNORE(x) (void) (x)
|
||||
|
||||
#endif /* include guard */
|
||||
|
|
|
|||
|
|
@ -9393,7 +9393,9 @@ finished: /* returning Values to Calling Routine */
|
|||
if (!ChargeComputationNeeded)
|
||||
goto line850;
|
||||
|
||||
#ifndef NOBYPASS
|
||||
line755:
|
||||
#endif
|
||||
ag0 = ckt->CKTag[0];
|
||||
|
||||
T0 = vgd + DELTA_1;
|
||||
|
|
|
|||
|
|
@ -884,7 +884,9 @@ tm0 = gtodsecld() ;
|
|||
|
||||
if (!ChargeComputationNeeded) goto line850;
|
||||
|
||||
line755:
|
||||
#ifndef NOBYPASS
|
||||
line755:
|
||||
#endif
|
||||
|
||||
ag0 = ckt->CKTag[0];
|
||||
if (here->HSM2_mode > 0) { /* NORMAL mode */
|
||||
|
|
|
|||
|
|
@ -1042,8 +1042,9 @@ int HSMHVload(
|
|||
|
||||
here->HSMHV_called += 1;
|
||||
|
||||
#ifndef NOBYPASS
|
||||
line755: /* standard entry if HSMHVevaluate is bypassed */
|
||||
/* (could be shifted a bit forward ...) */
|
||||
#endif /* (could be shifted a bit forward ...) */
|
||||
if ( here->HSMHV_mode > 0 ) { /* forward mode */
|
||||
Rd = here->HSMHV_Rd ;
|
||||
dRd_dVdse = here->HSMHV_dRd_dVdse ;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ VDMOS: 2018 Holger Vogt, 2020 Dietmar Warning
|
|||
|
||||
/* declarations for VDMOSFETs */
|
||||
|
||||
void VDMOStempUpdate(VDMOSmodel *, VDMOSinstance *, double , CKTcircuit *);
|
||||
|
||||
/* indices to the array of MOSFET(1) noise sources */
|
||||
|
||||
enum {
|
||||
|
|
|
|||
|
|
@ -304,7 +304,6 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
|
|||
drd1T_dT = 0.0;
|
||||
if (model->VDMOSqsGiven)
|
||||
rd1T = here->VDMOSqsResistance;
|
||||
drd1T_dT = 0.0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -885,7 +884,9 @@ bypass:
|
|||
*(ckt->CKTstate0 + here->VDIOconduct) = gd;
|
||||
*(ckt->CKTstate0 + here->VDIOdIdio_dT) = dIdio_dT;
|
||||
|
||||
#ifndef NOBYPASS
|
||||
load:
|
||||
#endif
|
||||
if (selfheat) {
|
||||
Ith = vd*cd;
|
||||
dIth_dVdio = cd + vd*gd;
|
||||
|
|
|
|||
|
|
@ -235,11 +235,12 @@ INPgetModBin(CKTcircuit *ckt, char *name, INPmodel **model, INPtables *tab, char
|
|||
if (!cp_getvar("scale", CP_REAL, &scale, 0))
|
||||
scale = 1;
|
||||
|
||||
if (!cp_getvar("wnflag", CP_NUM, &wnflag, 0))
|
||||
if (!cp_getvar("wnflag", CP_NUM, &wnflag, 0)) {
|
||||
if (newcompat.spe || newcompat.hs)
|
||||
wnflag = 1;
|
||||
else
|
||||
wnflag = 0;
|
||||
}
|
||||
|
||||
*model = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue