From 5abe48f24e32f90942631b0a6100e7fc02cfe98b Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Thu, 19 Aug 2021 09:08:43 +0200 Subject: [PATCH] fix compiler warnings about unitialized variables (they arent, but ...) --- src/move.c | 2 +- src/spice_netlist.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/move.c b/src/move.c index f220e499..e1db4075 100644 --- a/src/move.c +++ b/src/move.c @@ -709,7 +709,7 @@ void copy_objects(int what) if(c!=k) break; { xPoly *p = &xctx->poly[c][n]; - double bx1, by1, bx2, by2; + double bx1 = 0.0, by1 = 0.0, bx2 = 0.0, by2 = 0.0; double *x = my_malloc(227, sizeof(double) *p->points); double *y = my_malloc(228, sizeof(double) *p->points); int j; diff --git a/src/spice_netlist.c b/src/spice_netlist.c index 95677837..864c5aed 100644 --- a/src/spice_netlist.c +++ b/src/spice_netlist.c @@ -476,7 +476,7 @@ void spice_netlist(FILE *fd, int spice_stop ) flag = 1; } if(top_subckt) { - int d; + int d = 'X'; if(!strcmp(type, "ipin")) d = 'I'; if(!strcmp(type, "opin")) d = 'O'; if(!strcmp(type, "iopin")) d = 'B';