Browse Source

prevent few gcc warnings

pre-master-46
dwarning 6 years ago
committed by Holger Vogt
parent
commit
31a054f244
  1. 7
      src/include/ngspice/cmproto.h
  2. 2
      src/spicelib/devices/bsimsoi/b4soild.c
  3. 4
      src/spicelib/devices/hisim2/hsm2ld.c
  4. 3
      src/spicelib/devices/hisimhv1/hsmhvld.c
  5. 2
      src/spicelib/devices/vdmos/vdmosdefs.h
  6. 3
      src/spicelib/devices/vdmos/vdmosload.c
  7. 3
      src/spicelib/parser/inpgmod.c

7
src/include/ngspice/cmproto.h

@ -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 */

2
src/spicelib/devices/bsimsoi/b4soild.c

@ -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;

4
src/spicelib/devices/hisim2/hsm2ld.c

@ -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 */

3
src/spicelib/devices/hisimhv1/hsmhvld.c

@ -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 ;

2
src/spicelib/devices/vdmos/vdmosdefs.h

@ -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 {

3
src/spicelib/devices/vdmos/vdmosload.c

@ -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;

3
src/spicelib/parser/inpgmod.c

@ -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…
Cancel
Save