Remove linker warnings (VS2022)

This commit is contained in:
Holger Vogt 2026-04-25 11:46:35 +02:00
parent 1636ca3ce1
commit 2c0aabd760
4 changed files with 7 additions and 6 deletions

View File

@ -241,7 +241,7 @@ com_iplot(wordlist *wl)
return; return;
} }
struct dbcomm *d, *td, *currentdb = NULL; struct dbcomm *d, *td = NULL, *currentdb = NULL;
double window = 0.0; double window = 0.0;
#ifdef XSPICE #ifdef XSPICE
int event_auto_incr = 0; int event_auto_incr = 0;
@ -311,7 +311,7 @@ com_iplot(wordlist *wl)
/* Chain in expected order. */ /* Chain in expected order. */
if (currentdb) if (currentdb && td)
td->db_also = d; td->db_also = d;
else else
currentdb = d; currentdb = d;

View File

@ -1491,6 +1491,7 @@ static struct inp_read_t inp_read(FILE* fp, int call_depth, const char* dir_name
struct card* newcard; struct card* newcard;
struct compat tmpcomp; struct compat tmpcomp;
memset(&tmpcomp, 0, sizeof(tmpcomp));
bool compset = FALSE; bool compset = FALSE;
/* special treatment of special .inc commands */ /* special treatment of special .inc commands */

View File

@ -84,7 +84,7 @@ int gr_init(double *xlims, double *ylims, /* The size of the screen. */
const char *commandline, /* For xi_zoomdata() */ const char *commandline, /* For xi_zoomdata() */
int prevgraph) /* plot id, if started from a previous plot*/ int prevgraph) /* plot id, if started from a previous plot*/
{ {
GRAPH *graph, *pgraph; GRAPH *graph, *pgraph = NULL;
wordlist *wl; wordlist *wl;
NG_IGNORE(nplots); NG_IGNORE(nplots);
@ -182,7 +182,7 @@ int gr_init(double *xlims, double *ylims, /* The size of the screen. */
} }
/* restore data from previous graph, e.g. for zooming */ /* restore data from previous graph, e.g. for zooming */
if (prevgraph > 0) { if (prevgraph > 0 && pgraph) {
int i; int i;
/* transmit colors */ /* transmit colors */
@ -1359,7 +1359,7 @@ void gr_iplot(struct plot *plot)
struct dbcomm *dd; struct dbcomm *dd;
int dup = 0; int dup = 0;
#ifdef XSPICE #ifdef XSPICE
char *offp, save_sign; char *offp, save_sign = '\0';
#endif #endif
if (dc->db_nodename1 == NULL) if (dc->db_nodename1 == NULL)

View File

@ -30,7 +30,7 @@ void INP2N(CKTcircuit *ckt, INPtables *tab, struct card *current) {
GENinstance *fast; /* Pointer to the actual instance. */ GENinstance *fast; /* Pointer to the actual instance. */
int waslead; /* Funny unlabeled number was found. */ int waslead; /* Funny unlabeled number was found. */
double leadval; /* Value of unlabeled number. */ double leadval; /* Value of unlabeled number. */
INPmodel *thismodel; /* Pointer to model description for user's model. */ INPmodel *thismodel = NULL; /* Pointer to model description for user's model. */
GENmodel *mdfast; /* Pointer to the actual model. */ GENmodel *mdfast; /* Pointer to the actual model. */
IFdevice *dev; IFdevice *dev;
CKTnode *node; CKTnode *node;