Browse Source

pour `IGNORE()' all over the source

pre-master-46
rlar 16 years ago
parent
commit
80286e0032
  1. 4
      ChangeLog
  2. 1
      src/ciderlib/oned/onesetup.c
  3. 4
      src/ciderlib/twod/twoadmit.c
  4. 4
      src/ciderlib/twod/twocond.c
  5. 2
      src/ciderlib/twod/twocurr.c
  6. 2
      src/ciderlib/twod/twofield.c
  7. 8
      src/ciderlib/twod/twomobfn.c
  8. 2
      src/frontend/arg.c
  9. 5
      src/frontend/aspice.c
  10. 2
      src/frontend/breakp.c
  11. 2
      src/frontend/com_dump.c
  12. 3
      src/frontend/com_measure2.c
  13. 2
      src/frontend/com_rehash.c
  14. 2
      src/frontend/com_state.c
  15. 2
      src/frontend/com_sysinfo.c
  16. 14
      src/frontend/device.c
  17. 1
      src/frontend/error.c
  18. 3
      src/frontend/fourier.c
  19. 2
      src/frontend/gens.c
  20. 2
      src/frontend/help/textdisp.c
  21. 12
      src/frontend/help/x11disp.c
  22. 7
      src/frontend/help/xdisplay.c
  23. 2
      src/frontend/inpcom.c
  24. 2
      src/frontend/misccoms.c
  25. 2
      src/frontend/mw_coms.c
  26. 1
      src/frontend/numparam/spicenum.c
  27. 2
      src/frontend/numparam/xpressn.c
  28. 7
      src/frontend/nutinp.c
  29. 10
      src/frontend/nutmegif.c
  30. 18
      src/frontend/outitf.c
  31. 5
      src/frontend/parse-bison.y
  32. 1
      src/frontend/parse.c
  33. 5
      src/frontend/parser/complete.c
  34. 5
      src/frontend/parser/unixcom.c
  35. 3
      src/frontend/plotting/agraf.c
  36. 8
      src/frontend/plotting/gnuplot.c
  37. 2
      src/frontend/plotting/graf.c
  38. 5
      src/frontend/plotting/grid.c
  39. 1
      src/frontend/plotting/plot5.c
  40. 25
      src/frontend/plotting/x11.c
  41. 4
      src/frontend/runcoms.c
  42. 4
      src/frontend/runcoms2.c
  43. 2
      src/frontend/signal_handler.c
  44. 10
      src/frontend/spiceif.c
  45. 2
      src/frontend/where.c
  46. 70
      src/main.c
  47. 11
      src/maths/cmaths/cmath2.c
  48. 15
      src/maths/sparse/spsmp.c
  49. 1
      src/ngnutmeg.c
  50. 25
      src/ngsconvert.c
  51. 2
      src/spicelib/analysis/acaskq.c
  52. 2
      src/spicelib/analysis/acsetp.c
  53. 2
      src/spicelib/analysis/cktacct.c
  54. 2
      src/spicelib/analysis/cktaskaq.c
  55. 3
      src/spicelib/analysis/cktasknq.c
  56. 3
      src/spicelib/analysis/cktdelt.c
  57. 3
      src/spicelib/analysis/cktdlti.c
  58. 4
      src/spicelib/analysis/cktfnda.c
  59. 4
      src/spicelib/analysis/cktftask.c
  60. 3
      src/spicelib/analysis/cktmask.c
  61. 2
      src/spicelib/analysis/cktmknod.c
  62. 3
      src/spicelib/analysis/cktmpar.c
  63. 2
      src/spicelib/analysis/cktnewan.c
  64. 2
      src/spicelib/analysis/cktntask.c
  65. 4
      src/spicelib/analysis/cktop.c
  66. 3
      src/spicelib/analysis/cktparam.c
  67. 2
      src/spicelib/analysis/cktpmnam.c
  68. 2
      src/spicelib/analysis/cktpname.c
  69. 2
      src/spicelib/analysis/cktpzstr.c
  70. 4
      src/spicelib/analysis/cktsens.c
  71. 3
      src/spicelib/analysis/cktsetap.c
  72. 3
      src/spicelib/analysis/cktsetnp.c
  73. 3
      src/spicelib/analysis/cktsgen.c
  74. 2
      src/spicelib/analysis/cktsopt.c
  75. 2
      src/spicelib/analysis/daskq.c
  76. 4
      src/spicelib/analysis/dcoaskq.c
  77. 2
      src/spicelib/analysis/dcop.c
  78. 4
      src/spicelib/analysis/dcosetp.c
  79. 3
      src/spicelib/analysis/dctaskq.c
  80. 3
      src/spicelib/analysis/dctsetp.c
  81. 2
      src/spicelib/analysis/distoan.c
  82. 2
      src/spicelib/analysis/dkerproc.c
  83. 2
      src/spicelib/analysis/dsetparm.c
  84. 2
      src/spicelib/analysis/naskq.c
  85. 2
      src/spicelib/analysis/nsetparm.c
  86. 2
      src/spicelib/analysis/pzan.c
  87. 2
      src/spicelib/analysis/pzsetp.c
  88. 2
      src/spicelib/analysis/sensaskq.c
  89. 2
      src/spicelib/analysis/senssetp.c
  90. 1
      src/spicelib/analysis/tfanal.c
  91. 4
      src/spicelib/analysis/tfaskq.c
  92. 2
      src/spicelib/analysis/tfsetp.c
  93. 2
      src/spicelib/analysis/tranaskq.c
  94. 2
      src/spicelib/analysis/transetp.c
  95. 2
      src/spicelib/devices/asrc/asrcacld.c
  96. 2
      src/spicelib/devices/asrc/asrcask.c
  97. 3
      src/spicelib/devices/asrc/asrcpar.c
  98. 2
      src/spicelib/devices/asrc/asrcpzld.c
  99. 2
      src/spicelib/devices/asrc/asrcset.c
  100. 2
      src/spicelib/devices/bjt/bjtmask.c

4
ChangeLog

@ -1,3 +1,7 @@
2010-11-16 Robert Larice
* src/**/* :
pour `IGNORE()' all over the source
2010-11-16 Robert Larice 2010-11-16 Robert Larice
* src/include/ngspice.h : * src/include/ngspice.h :
introduce macro `IGNORE(x)', which shall used to mark unused parameters introduce macro `IGNORE(x)', which shall used to mark unused parameters

1
src/ciderlib/oned/onesetup.c

@ -123,6 +123,7 @@ ONEcopyBCinfo(ONEdevice *pDevice, ONEelem *pElem, BDRYcard *bdry, int index)
int eIndex; int eIndex;
double length; double length;
IGNORE(pDevice);
/* First add fixed charge. */ /* First add fixed charge. */
pNode = pElem->pNodes[index]; pNode = pElem->pNodes[index];

4
src/ciderlib/twod/twoadmit.c

@ -765,6 +765,8 @@ contactAdmittance(TWOdevice *pDevice, TWOcontact *pContact, BOOLEAN delVContact,
SPcomplex prod1, prod2, sum; SPcomplex prod1, prod2, sum;
double temp; double temp;
IGNORE(pDevice);
CMPLX_ASSIGN_VALUE(yTotal, 0.0, 0.0); CMPLX_ASSIGN_VALUE(yTotal, 0.0, 0.0);
numContactNodes = pContact->numNodes; numContactNodes = pContact->numNodes;
@ -964,6 +966,8 @@ oxideAdmittance(TWOdevice *pDevice, TWOcontact *pContact, BOOLEAN delVContact,
SPcomplex psiAc; SPcomplex psiAc;
SPcomplex prod1, prod2; SPcomplex prod1, prod2;
IGNORE(pDevice);
CMPLX_ASSIGN_VALUE(yTotal, 0.0, 0.0); CMPLX_ASSIGN_VALUE(yTotal, 0.0, 0.0);
numContactNodes = pContact->numNodes; numContactNodes = pContact->numNodes;

4
src/ciderlib/twod/twocond.c

@ -274,6 +274,8 @@ double
double gTotal = 0.0; double gTotal = 0.0;
int nInc, pInc; int nInc, pInc;
IGNORE(pDevice);
/* for one carrier the rest of this code relies on appropriate /* for one carrier the rest of this code relies on appropriate
current derivative term to be zero */ current derivative term to be zero */
if ( !OneCarrier ) { if ( !OneCarrier ) {
@ -433,6 +435,8 @@ double
double dPsiDv; double dPsiDv;
double gTotal = 0.0; double gTotal = 0.0;
IGNORE(pDevice);
if ( !tranAnalysis ) { if ( !tranAnalysis ) {
return( gTotal ); return( gTotal );
} }

2
src/ciderlib/twod/twocurr.c

@ -25,6 +25,8 @@ nodeCurrents(TWOelem *pElem, TWOnode *pNode, double *mun, double *mup,
double epsL = 0.0, epsR = 0.0, epsT = 0.0, epsB = 0.0; double epsL = 0.0, epsR = 0.0, epsT = 0.0, epsB = 0.0;
double coeff1, coeff2; double coeff1, coeff2;
IGNORE(pElem);
/* Find all four neighboring elements */ /* Find all four neighboring elements */
pElemTL = pNode->pTLElem; pElemTL = pNode->pTLElem;
pElemTR = pNode->pTRElem; pElemTR = pNode->pTRElem;

2
src/ciderlib/twod/twofield.c

@ -21,6 +21,8 @@ nodeFields(TWOelem *pElem, TWOnode *pNode, double *ex, double *ey)
double dxL = 0.0, dxR = 0.0, dyT = 0.0, dyB = 0.0; double dxL = 0.0, dxR = 0.0, dyT = 0.0, dyB = 0.0;
double ef1, ef2, coeff1, coeff2; double ef1, ef2, coeff1, coeff2;
IGNORE(pElem);
/* Find all four neighboring elements */ /* Find all four neighboring elements */
pElemTL = pNode->pTLElem; pElemTL = pNode->pTLElem;
pElemTR = pNode->pTRElem; pElemTR = pNode->pTRElem;

8
src/ciderlib/twod/twomobfn.c

@ -47,6 +47,10 @@ MOBsurfElec(TWOmaterial *info, TWOelem *pElem, double ex, double ey,
double dElDWx; /* Lateral Derivative x Component */ double dElDWx; /* Lateral Derivative x Component */
double dElDWy; /* Lateral Derivative y Component */ double dElDWy; /* Lateral Derivative y Component */
IGNORE(wx);
IGNORE(wy);
IGNORE(totalConc);
if ( pElem->surface ) { /* replace one field component with surface field */ if ( pElem->surface ) { /* replace one field component with surface field */
if ( pElem->direction == 0 ) { if ( pElem->direction == 0 ) {
ey = es; ey = es;
@ -247,6 +251,10 @@ MOBsurfHole(TWOmaterial *info, TWOelem *pElem, double ex, double ey,
double dElDWx; /* Lateral Derivative x Component */ double dElDWx; /* Lateral Derivative x Component */
double dElDWy; /* Lateral Derivative y Component */ double dElDWy; /* Lateral Derivative y Component */
IGNORE(wx);
IGNORE(wy);
IGNORE(totalConc);
if ( pElem->surface ) { /* replace one field component with surface field */ if ( pElem->surface ) { /* replace one field component with surface field */
if ( pElem->direction == 0 ) { if ( pElem->direction == 0 ) {
ey = es; ey = es;

2
src/frontend/arg.c

@ -96,6 +96,8 @@ void arg_set(wordlist *wl, struct comm *command)
void arg_display(wordlist *wl, struct comm *command) void arg_display(wordlist *wl, struct comm *command)
{ {
IGNORE(wl);
IGNORE(command);
/* just return; display does the right thing */ /* just return; display does the right thing */

5
src/frontend/aspice.c

@ -156,6 +156,8 @@ com_jobs(wordlist *wl)
{ {
struct proc *p; struct proc *p;
IGNORE(wl);
for (p = running; p; p = p->pr_next) for (p = running; p; p = p->pr_next)
fprintf(cp_out, "%d\t%.70s\n", p->pr_pid, p->pr_name); fprintf(cp_out, "%d\t%.70s\n", p->pr_pid, p->pr_name);
return; return;
@ -414,6 +416,7 @@ void
com_aspice( com_aspice(
wordlist *wl) wordlist *wl)
{ {
IGNORE(wl);
fprintf(cp_err, "Asynchronous spice jobs are not available.\n"); fprintf(cp_err, "Asynchronous spice jobs are not available.\n");
return; return;
} }
@ -422,6 +425,7 @@ void
com_jobs( com_jobs(
wordlist *wl) wordlist *wl)
{ {
IGNORE(wl);
fprintf(cp_err, "Asynchronous spice jobs are not available.\n"); fprintf(cp_err, "Asynchronous spice jobs are not available.\n");
return; return;
} }
@ -436,6 +440,7 @@ void
com_rspice( com_rspice(
wordlist *wl) wordlist *wl)
{ {
IGNORE(wl);
fprintf(cp_err, "Remote spice jobs are not available.\n"); fprintf(cp_err, "Remote spice jobs are not available.\n");
return; return;
} }

2
src/frontend/breakp.c

@ -205,6 +205,8 @@ com_sttus(wordlist *wl)
{ {
struct dbcomm *d, *dc; struct dbcomm *d, *dc;
IGNORE(wl);
for (d = dbs; d; d = d->db_next) { for (d = dbs; d; d = d->db_next) {
if (d->db_type == DB_TRACENODE) { if (d->db_type == DB_TRACENODE) {
if (isatty(fileno(cp_out))) if (isatty(fileno(cp_out)))

2
src/frontend/com_dump.c

@ -13,6 +13,8 @@
void void
com_dump(wordlist *wl) com_dump(wordlist *wl)
{ {
IGNORE(wl);
if (!ft_curckt || !ft_curckt->ci_ckt) { if (!ft_curckt || !ft_curckt->ci_ckt) {
fprintf(cp_err, "Error: no circuit loaded.\n"); fprintf(cp_err, "Error: no circuit loaded.\n");
return; return;

3
src/frontend/com_measure2.c

@ -951,6 +951,9 @@ static void measure_ERR3(void) {
} }
void com_dotmeasure(wordlist *wl) { void com_dotmeasure(wordlist *wl) {
IGNORE(wl);
/* simulation info */ /* simulation info */
// printf("*%s\n", plot_cur->pl_title); // printf("*%s\n", plot_cur->pl_title);
// printf("\t %s, %s\n", plot_cur->pl_name, plot_cur->pl_date); // missing temp // printf("\t %s, %s\n", plot_cur->pl_name, plot_cur->pl_date); // missing temp

2
src/frontend/com_rehash.c

@ -17,6 +17,8 @@ com_rehash(wordlist *wl)
{ {
char *s; char *s;
IGNORE(wl);
if (!cp_dounixcom) { if (!cp_dounixcom) {
fprintf(cp_err, "Error: unixcom not set.\n"); fprintf(cp_err, "Error: unixcom not set.\n");
return; return;

2
src/frontend/com_state.c

@ -14,6 +14,8 @@
void void
com_state(wordlist *wl) com_state(wordlist *wl)
{ {
IGNORE(wl);
if (!ft_curckt) { if (!ft_curckt) {
fprintf(cp_err, "Error: no circuit loaded.\n"); fprintf(cp_err, "Error: no circuit loaded.\n");
return; return;

2
src/frontend/com_sysinfo.c

@ -90,6 +90,8 @@ void com_sysinfo(wordlist *wl)
int errorcode; int errorcode;
TesSystemInfo* info; TesSystemInfo* info;
IGNORE(wl);
info = TMALLOC(TesSystemInfo, 1); info = TMALLOC(TesSystemInfo, 1);
errorcode = tesCreateSystemInfo(info); errorcode = tesCreateSystemInfo(info);

14
src/frontend/device.c

@ -403,6 +403,9 @@ all_show_old(wordlist *wl, int mode)
int int
printstr_n(dgen *dg, IFparm *p, int i) printstr_n(dgen *dg, IFparm *p, int i)
{ {
IGNORE(p);
IGNORE(i);
if (dg->instance) if (dg->instance)
fprintf(cp_out," %*.*s", DEV_WIDTH, DEV_WIDTH, dg->instance->GENname); fprintf(cp_out," %*.*s", DEV_WIDTH, DEV_WIDTH, dg->instance->GENname);
else else
@ -413,6 +416,9 @@ printstr_n(dgen *dg, IFparm *p, int i)
int int
printstr_m(dgen *dg, IFparm *p, int i) printstr_m(dgen *dg, IFparm *p, int i)
{ {
IGNORE(p);
IGNORE(i);
if (dg->model) if (dg->model)
fprintf(cp_out," %*.*s", DEV_WIDTH, DEV_WIDTH, dg->model->GENmodName); fprintf(cp_out," %*.*s", DEV_WIDTH, DEV_WIDTH, dg->model->GENmodName);
else else
@ -567,12 +573,20 @@ listparam(wordlist *p, dgen *dg)
int bogus1(dgen *dg, IFparm *p, int i) int bogus1(dgen *dg, IFparm *p, int i)
{ {
IGNORE(dg);
IGNORE(p);
IGNORE(i);
fprintf(cp_out," %*s", DEV_WIDTH, "---------"); fprintf(cp_out," %*s", DEV_WIDTH, "---------");
return 0; return 0;
} }
int bogus2(dgen *dg, IFparm *p, int i) int bogus2(dgen *dg, IFparm *p, int i)
{ {
IGNORE(dg);
IGNORE(p);
IGNORE(i);
fprintf(cp_out," %*s", DEV_WIDTH, "?????????"); fprintf(cp_out," %*s", DEV_WIDTH, "?????????");
return 0; return 0;
} }

1
src/frontend/error.c

@ -39,6 +39,7 @@ controlled_exit(int status)
void void
fperror(char *mess, int code) fperror(char *mess, int code)
{ {
IGNORE(code);
fprintf(cp_err, "%s: floating point exception.\n", mess); fprintf(cp_err, "%s: floating point exception.\n", mess);
return; return;
} }

3
src/frontend/fourier.c

@ -262,6 +262,9 @@ CKTfour(int ndata, /* number of entries in the Time and
int i; int i;
int j; int j;
double tmp; double tmp;
IGNORE(Time);
/* clear output/computation arrays */ /* clear output/computation arrays */
for(i=0;i<numFreq;i++) { for(i=0;i<numFreq;i++) {

2
src/frontend/gens.c

@ -30,6 +30,8 @@ dgen_init(GENcircuit *ckt, wordlist *wl, int nomix, int flag, int model)
dgen *dg, *dg_save; dgen *dg, *dg_save;
wordlist **prevp; wordlist **prevp;
IGNORE(nomix);
dg = NEW(dgen); dg = NEW(dgen);
dg->ckt = ckt; dg->ckt = ckt;
dg->instance = NULL; dg->instance = NULL;

2
src/frontend/help/textdisp.c

@ -128,6 +128,8 @@ hlp_thandle(topic **parent)
void void
hlp_tkillwin(topic *top) hlp_tkillwin(topic *top)
{ {
IGNORE(top);
if (curtop) if (curtop)
curtop = curtop->parent; curtop = curtop->parent;
if (curtop && !quitflag) if (curtop && !quitflag)

12
src/frontend/help/x11disp.c

@ -34,6 +34,9 @@ static Display *display;
static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) { static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) {
topic *top = (topic *) client_data; topic *top = (topic *) client_data;
IGNORE(cont);
IGNORE(w);
if (event->type == ClientMessage if (event->type == ClientMessage
&& event->xclient.message_type == atom_wm_protocols && event->xclient.message_type == atom_wm_protocols
&& (Atom) event->xclient.data.l[0] == atom_wm_delete_window) && (Atom) event->xclient.data.l[0] == atom_wm_delete_window)
@ -228,6 +231,9 @@ newtopic(Widget w, caddr_t client_data, caddr_t call_data)
toplink *result = ((handle *) client_data)->result; toplink *result = ((handle *) client_data)->result;
topic *newtop; topic *newtop;
IGNORE(call_data);
IGNORE(w);
if (!(newtop = hlp_read(result->place))) { if (!(newtop = hlp_read(result->place))) {
fprintf(stderr, "Internal error: bad link\n"); fprintf(stderr, "Internal error: bad link\n");
} }
@ -249,6 +255,9 @@ delete(Widget w, caddr_t client_data, caddr_t call_data)
topic *top = (topic *) client_data; topic *top = (topic *) client_data;
IGNORE(call_data);
IGNORE(w);
hlp_killfamily(top); hlp_killfamily(top);
hlp_fixchildren(top); hlp_fixchildren(top);
} }
@ -259,6 +268,9 @@ quit(Widget w, caddr_t client_data, caddr_t call_data)
topic *top = (topic *) client_data, *parent = top->parent; topic *top = (topic *) client_data, *parent = top->parent;
IGNORE(call_data);
IGNORE(w);
while (parent && parent->parent) parent = parent->parent; while (parent && parent->parent) parent = parent->parent;
hlp_killfamily(parent ? parent : top); hlp_killfamily(parent ? parent : top);
} }

7
src/frontend/help/xdisplay.c

@ -28,7 +28,12 @@ int hlp_buttonstyle = BS_LEFT;
/* ARGSUSED */ void hlp_xkillwin(topic *top) { } /* ARGSUSED */ void hlp_xkillwin(topic *top) { }
#endif #endif
/* ARGSUSED */ void hlp_xwait(topic *top, bool on) { }
/* ARGSUSED */ void hlp_xwait(topic *top, bool on)
{
IGNORE(on);
IGNORE(top);
}
void hlp_xclosedisplay(void) {} void hlp_xclosedisplay(void) {}
toplink * hlp_xhandle(topic **pp) { *pp = NULL; return (NULL); } toplink * hlp_xhandle(topic **pp) { *pp = NULL; return (NULL); }

2
src/frontend/inpcom.c

@ -3144,6 +3144,8 @@ inp_sort_params( struct line *start_card, struct line *end_card, struct line *ca
struct line **ptr_array; struct line **ptr_array;
struct line **ptr_array_ordered; struct line **ptr_array_ordered;
IGNORE(end_card);
if ( start_card == NULL ) return; if ( start_card == NULL ) return;
/* determine the number of lines with .param */ /* determine the number of lines with .param */

2
src/frontend/misccoms.c

@ -116,6 +116,8 @@ com_bug(wordlist *wl)
{ {
char buf[BSIZE_SP]; char buf[BSIZE_SP];
IGNORE(wl);
if (!Bug_Addr || !*Bug_Addr) { if (!Bug_Addr || !*Bug_Addr) {
fprintf(cp_err, "Error: No address to send bug reports to.\n"); fprintf(cp_err, "Error: No address to send bug reports to.\n");
return; return;

2
src/frontend/mw_coms.c

@ -31,6 +31,8 @@ com_removecirc(wordlist *wl)
char* namecircuit; char* namecircuit;
char buf[80]; char buf[80];
IGNORE(wl);
/* Allocation of a temp wordlist */ /* Allocation of a temp wordlist */
wlist = (struct wordlist *)malloc(sizeof(struct wordlist)); wlist = (struct wordlist *)malloc(sizeof(struct wordlist));

1
src/frontend/numparam/spicenum.c

@ -925,6 +925,7 @@ nupa_fetchinstance (void)
void dump_symbols( tdico *dico_p ) void dump_symbols( tdico *dico_p )
{ {
IGNORE(dico_p);
fprintf (stderr, "Symbol table\n"); fprintf (stderr, "Symbol table\n");
nupa_list_params ( stderr ) ; nupa_list_params ( stderr ) ;

2
src/frontend/numparam/xpressn.c

@ -433,6 +433,8 @@ define (tdico * dico,
SPICE_DSTRING vartemp ; /* vairable temp */ SPICE_DSTRING vartemp ; /* vairable temp */
NGHASHPTR htable_p ; /* hash table */ NGHASHPTR htable_p ; /* hash table */
IGNORE(pval);
spice_dstring_init(&vartemp) ; spice_dstring_init(&vartemp) ;
if( dico->stack_depth > 0 ){ if( dico->stack_depth > 0 ){

7
src/frontend/nutinp.c

@ -271,5 +271,12 @@ nutinp_source(char *file)
void void
nutinp_dodeck(struct line *deck, char *tt, wordlist *end, bool reuse, struct line *options, char *filename) nutinp_dodeck(struct line *deck, char *tt, wordlist *end, bool reuse, struct line *options, char *filename)
{ {
IGNORE(filename);
IGNORE(options);
IGNORE(reuse);
IGNORE(end);
IGNORE(tt);
IGNORE(deck);
/* This was "ifdef notdef"-ed out, so I tossed it */ /* This was "ifdef notdef"-ed out, so I tossed it */
} }

10
src/frontend/nutmegif.c

@ -14,6 +14,14 @@
struct variable * nutif_getparam(CKTcircuit *ckt, char **name, char *param, int ind, int do_model) struct variable * nutif_getparam(CKTcircuit *ckt, char **name, char *param, int ind, int do_model)
{ return ((struct variable *) NULL); }
{
IGNORE(do_model);
IGNORE(ind);
IGNORE(param);
IGNORE(name);
IGNORE(ckt);
return ((struct variable *) NULL);
}

18
src/frontend/outitf.c

@ -624,12 +624,21 @@ OUTpData(void *plotPtr, IFvalue *refValue, IFvalue *valuePtr)
int int
OUTwReference(void *plotPtr, IFvalue *valuePtr, void **refPtr) OUTwReference(void *plotPtr, IFvalue *valuePtr, void **refPtr)
{ {
IGNORE(refPtr);
IGNORE(valuePtr);
IGNORE(plotPtr);
return (OK); return (OK);
} }
/* ARGSUSED */ /* until some code gets written */ /* ARGSUSED */ /* until some code gets written */
int int
OUTwData(void *plotPtr, int dataIndex, IFvalue *valuePtr, void *refPtr) OUTwData(void *plotPtr, int dataIndex, IFvalue *valuePtr, void *refPtr)
{ {
IGNORE(refPtr);
IGNORE(valuePtr);
IGNORE(dataIndex);
IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -637,6 +646,7 @@ OUTwData(void *plotPtr, int dataIndex, IFvalue *valuePtr, void *refPtr)
int int
OUTwEnd(void *plotPtr) OUTwEnd(void *plotPtr)
{ {
IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -669,6 +679,11 @@ OUTendPlot(void *plotPtr)
int int
OUTbeginDomain(void *plotPtr, IFuid refName, int refType, IFvalue *outerRefValue) OUTbeginDomain(void *plotPtr, IFuid refName, int refType, IFvalue *outerRefValue)
{ {
IGNORE(outerRefValue);
IGNORE(refType);
IGNORE(refName);
IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -676,6 +691,7 @@ OUTbeginDomain(void *plotPtr, IFuid refName, int refType, IFvalue *outerRefValue
int int
OUTendDomain(void *plotPtr) OUTendDomain(void *plotPtr)
{ {
IGNORE(plotPtr);
return (OK); return (OK);
} }
@ -690,6 +706,8 @@ OUTattributes(void *plotPtr, IFuid varName, int param, IFvalue *value)
GRIDTYPE type; GRIDTYPE type;
int i; int i;
IGNORE(value);
if (param == OUT_SCALE_LIN) if (param == OUT_SCALE_LIN)
type = GRID_LIN; type = GRID_LIN;
else if (param == OUT_SCALE_LOG) else if (param == OUT_SCALE_LOG)

5
src/frontend/parse-bison.y

@ -163,6 +163,9 @@ exp:
static void static void
PPerror (YYLTYPE *locp, char **line, struct pnode **retval, char const *s) PPerror (YYLTYPE *locp, char **line, struct pnode **retval, char const *s)
{ {
U(line); U(retval);
IGNORE(locp);
IGNORE(line);
IGNORE(retval);
fprintf (stderr, "%s: %s\n", __func__, s); fprintf (stderr, "%s: %s\n", __func__, s);
} }

1
src/frontend/parse.c

@ -526,6 +526,7 @@ char *
db_print_pnode_tree(struct pnode *p, char *print) db_print_pnode_tree(struct pnode *p, char *print)
{ {
#if 1 #if 1
IGNORE(print);
db_print_pnode(stdout, p); db_print_pnode(stdout, p);
return NULL; return NULL;
#else #else

5
src/frontend/parser/complete.c

@ -335,6 +335,9 @@ printem(wordlist *wl)
void void
cp_ccom(wordlist *wlist, char *buf, bool esc) cp_ccom(wordlist *wlist, char *buf, bool esc)
{ {
IGNORE(wlist);
IGNORE(buf);
IGNORE(esc);
return; return;
} }
#endif #endif
@ -569,6 +572,8 @@ cp_kwswitch(int class, char *tree)
void void
cp_ccrestart(bool kwords) cp_ccrestart(bool kwords)
{ {
IGNORE(kwords);
/* Ack. */ /* Ack. */
return; return;
} }

5
src/frontend/parser/unixcom.c

@ -239,7 +239,10 @@ cp_hstat(void)
void void
cp_rehash(char *pathlist, bool docc) cp_rehash(char *pathlist, bool docc)
{ }
{
IGNORE(docc);
IGNORE(pathlist);
}
bool bool
cp_unixcom(wordlist *wl) cp_unixcom(wordlist *wl)

3
src/frontend/plotting/agraf.c

@ -45,6 +45,9 @@ ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot, s
int i, j, k; int i, j, k;
int shift; int shift;
IGNORE(xdel);
IGNORE(ydel);
IGNORE(ylog);
/* ANSI C does not specify how many digits are in an exponent for %c /* ANSI C does not specify how many digits are in an exponent for %c
* We assumed it was 2. If it's more, shift starting position over. * We assumed it was 2. If it's more, shift starting position over.

8
src/frontend/plotting/gnuplot.c

@ -236,6 +236,14 @@ ft_writesimple(double *xlims, double *ylims, char *filename, char *title, char *
char filename_data[128]; char filename_data[128];
IGNORE(xlims);
IGNORE(ylims);
IGNORE(title);
IGNORE(xlabel);
IGNORE(ylabel);
IGNORE(gridtype);
IGNORE(plottype);
sprintf(filename_data, "%s.data", filename); sprintf(filename_data, "%s.data", filename);
/* Sanity checking. */ /* Sanity checking. */

2
src/frontend/plotting/graf.c

@ -83,6 +83,7 @@ gr_init(double *xlims, double *ylims, /* The size of the screen. */
wordlist *wl; wordlist *wl;
char *comb_title; char *comb_title;
IGNORE(nplots);
if (!(graph = NewGraph())) { if (!(graph = NewGraph())) {
return(FALSE); return(FALSE);
@ -442,6 +443,7 @@ drawlegend(GRAPH *graph, int plotno, struct dvec *dv)
void void
gr_end(struct dvec *dv) gr_end(struct dvec *dv)
{ {
IGNORE(dv);
DevUpdate(); DevUpdate();
} }

5
src/frontend/plotting/grid.c

@ -483,6 +483,9 @@ drawlingrid(GRAPH *graph, char *units, int spacing, int nsp, double dst, double
double m, step; double m, step;
char buf[LABEL_CHARS]; char buf[LABEL_CHARS];
IGNORE(onedec);
IGNORE(mult);
/* i counts how many pixels we have drawn, and j counts which unit /* i counts how many pixels we have drawn, and j counts which unit
* we are at. * we are at.
*/ */
@ -1315,6 +1318,8 @@ arcset(GRAPH *graph, double rad, double prevrad, double irad, double iprevrad, d
double iangle = atan2((double) prevrad, (double) irad); double iangle = atan2((double) prevrad, (double) irad);
int x, xlab, ylab; int x, xlab, ylab;
IGNORE(nlab);
/* Let's be lazy and just draw everything -- we won't get called too /* Let's be lazy and just draw everything -- we won't get called too
* much and the circles get clipped anyway... * much and the circles get clipped anyway...
*/ */

1
src/frontend/plotting/plot5.c

@ -203,6 +203,7 @@ Plt5_SetLinestyle(int linestyleid)
int int
Plt5_SetColor(int colorid) Plt5_SetColor(int colorid)
{ {
IGNORE(colorid);
/* do nothing */ /* do nothing */
return 0; return 0;

25
src/frontend/plotting/x11.c

@ -270,6 +270,8 @@ handlekeypressed(Widget w, caddr_t clientdata, caddr_t calldata)
char text[4]; char text[4];
int nbytes; int nbytes;
IGNORE(w);
nbytes = XLookupString(keyev, text, 4, NULL, NULL); nbytes = XLookupString(keyev, text, 4, NULL, NULL);
if (!nbytes) return; if (!nbytes) return;
/* write it */ /* write it */
@ -294,6 +296,8 @@ handlebuttonev(Widget w, caddr_t clientdata, caddr_t calldata)
XButtonEvent *buttonev = (XButtonEvent *) calldata; XButtonEvent *buttonev = (XButtonEvent *) calldata;
IGNORE(w);
switch (buttonev->button) { switch (buttonev->button) {
case Button1: case Button1:
slopelocation((GRAPH *) clientdata, buttonev->x, buttonev->y); slopelocation((GRAPH *) clientdata, buttonev->x, buttonev->y);
@ -309,6 +313,9 @@ handlebuttonev(Widget w, caddr_t clientdata, caddr_t calldata)
static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) { static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) {
GRAPH *graph = (GRAPH *) client_data; GRAPH *graph = (GRAPH *) client_data;
IGNORE(cont);
IGNORE(w);
if (event->type == ClientMessage if (event->type == ClientMessage
&& event->xclient.message_type == atom_wm_protocols && event->xclient.message_type == atom_wm_protocols
&& (Atom) event->xclient.data.l[0] == atom_wm_delete_window) { && (Atom) event->xclient.data.l[0] == atom_wm_delete_window) {
@ -551,6 +558,11 @@ X11_Text(char *text, int x, int y)
int int
X11_DefineColor(int colorid, double red, double green, double blue) X11_DefineColor(int colorid, double red, double green, double blue)
{ {
IGNORE(blue);
IGNORE(green);
IGNORE(red);
IGNORE(colorid);
internalerror("X11_DefineColor not implemented."); internalerror("X11_DefineColor not implemented.");
return 0; return 0;
} }
@ -559,6 +571,9 @@ X11_DefineColor(int colorid, double red, double green, double blue)
int int
X11_DefineLinestyle(int linestyleid, int mask) X11_DefineLinestyle(int linestyleid, int mask)
{ {
IGNORE(mask);
IGNORE(linestyleid);
internalerror("X11_DefineLinestyle not implemented."); internalerror("X11_DefineLinestyle not implemented.");
return 0; return 0;
} }
@ -830,6 +845,9 @@ zoomin(GRAPH *graph)
void void
hardcopy(Widget w, caddr_t client_data, caddr_t call_data) hardcopy(Widget w, caddr_t client_data, caddr_t call_data)
{ {
IGNORE(call_data);
IGNORE(w);
/* com_hardcopy() -> gr_resize() -> setcolor() dirung postscript /* com_hardcopy() -> gr_resize() -> setcolor() dirung postscript
printing will act on currentgraph with a DEVDEP inherited from PSdevdep. printing will act on currentgraph with a DEVDEP inherited from PSdevdep.
But currentgraph had not changed its devdep, which was derived from But currentgraph had not changed its devdep, which was derived from
@ -856,6 +874,9 @@ killwin(Widget w, caddr_t client_data, caddr_t call_data)
GRAPH *graph = (GRAPH *) client_data; GRAPH *graph = (GRAPH *) client_data;
IGNORE(call_data);
IGNORE(w);
/* Iplots are done asynchronously */ /* Iplots are done asynchronously */
DEVDEP(graph).isopen = 0; DEVDEP(graph).isopen = 0;
/* MW. Not sure but DestroyGraph might free() to much - try Xt...() first */ /* MW. Not sure but DestroyGraph might free() to much - try Xt...() first */
@ -889,6 +910,8 @@ redraw(Widget w, caddr_t client_data, caddr_t call_data)
XRectangle rects[30]; XRectangle rects[30];
int n = 1; int n = 1;
IGNORE(w);
DEVDEP(graph).isopen = 1; DEVDEP(graph).isopen = 1;
@ -926,6 +949,8 @@ resize(Widget w, caddr_t client_data, caddr_t call_data)
GRAPH *graph = (GRAPH *) client_data; GRAPH *graph = (GRAPH *) client_data;
XEvent ev; XEvent ev;
IGNORE(call_data);
/* pull out all other exposure events /* pull out all other exposure events
Also, get rid of other StructureNotify events on this window. */ Also, get rid of other StructureNotify events on this window. */

4
src/frontend/runcoms.c

@ -383,6 +383,10 @@ ft_dorun(char *file)
bool bool
ft_getOutReq(FILE **fpp, struct plot **plotp, bool *binp, char *name, char *title) ft_getOutReq(FILE **fpp, struct plot **plotp, bool *binp, char *name, char *title)
{ {
IGNORE(title);
IGNORE(name);
IGNORE(plotp);
if (rawfileFp) { if (rawfileFp) {
*fpp = rawfileFp; *fpp = rawfileFp;
*binp = rawfileBinary; *binp = rawfileBinary;

4
src/frontend/runcoms2.c

@ -52,6 +52,8 @@ com_resume(wordlist *wl)
bool ascii = AsciiRawFile; bool ascii = AsciiRawFile;
/*end saj*/ /*end saj*/
IGNORE(wl);
/*saj fix segment*/ /*saj fix segment*/
if (!ft_curckt) { if (!ft_curckt) {
fprintf(cp_err, "Error: there aren't any circuits loaded.\n"); fprintf(cp_err, "Error: there aren't any circuits loaded.\n");
@ -172,6 +174,8 @@ com_rset(wordlist *wl)
{ {
struct variable *v, *next; struct variable *v, *next;
IGNORE(wl);
if (ft_curckt == NULL) { if (ft_curckt == NULL) {
fprintf(cp_err, "Error: there is no circuit loaded.\n"); fprintf(cp_err, "Error: there is no circuit loaded.\n");
return; return;

2
src/frontend/signal_handler.c

@ -87,6 +87,8 @@ ft_sigintr(void)
RETSIGTYPE RETSIGTYPE
sigfloat(int sig, int code) sigfloat(int sig, int code)
{ {
IGNORE(sig);
gr_clean(); gr_clean();
fperror("Error", code); fperror("Error", code);
rewind(cp_out); rewind(cp_out);

10
src/frontend/spiceif.c

@ -536,6 +536,8 @@ fputs("\t(Note that you must use an = to separate option name and value.)\n",
void void
if_dump(CKTcircuit *ckt, FILE *file) if_dump(CKTcircuit *ckt, FILE *file)
{ {
IGNORE(ckt);
/*void *cc = (void *) ckt;*/ /*void *cc = (void *) ckt;*/
fprintf(file,"diagnostic output dump unavailable."); fprintf(file,"diagnostic output dump unavailable.");
@ -618,6 +620,8 @@ spif_getparam_special(CKTcircuit *ckt,char **name,char *param,int ind,int do_mod
GENmodel *mod=(GENmodel *)NULL; GENmodel *mod=(GENmodel *)NULL;
IFdevice *device; IFdevice *device;
IGNORE(do_model);
/* fprintf(cp_err, "Calling if_getparam(%s, %s)\n", *name, param); */ /* fprintf(cp_err, "Calling if_getparam(%s, %s)\n", *name, param); */
if (!param || (param && eq(param, "all"))) if (!param || (param && eq(param, "all")))
@ -1007,6 +1011,8 @@ parmlookup(IFdevice *dev, GENinstance **inptr, char *param, int do_model, int in
{ {
int i; int i;
IGNORE(inptr);
/* First try the device questions... */ /* First try the device questions... */
if (!do_model && dev->numInstanceParms) { if (!do_model && dev->numInstanceParms) {
for (i = 0; i < *(dev->numInstanceParms); i++) { for (i = 0; i < *(dev->numInstanceParms); i++) {
@ -1052,6 +1058,8 @@ doask(CKTcircuit *ckt, int typecode, GENinstance *dev, GENmodel *mod, IFparm *op
static IFvalue pv; static IFvalue pv;
int err; int err;
IGNORE(typecode);
pv.iValue = ind; /* Sometimes this will be junk and ignored... */ pv.iValue = ind; /* Sometimes this will be junk and ignored... */
/* fprintf(cp_err, "Calling doask(%d, %x, %x, %x)\n", /* fprintf(cp_err, "Calling doask(%d, %x, %x, %x)\n",
@ -1085,6 +1093,8 @@ doset(CKTcircuit *ckt, int typecode, GENinstance *dev, GENmodel *mod, IFparm *op
double *dptr; double *dptr;
int i; int i;
IGNORE(typecode);
/* Count items */ /* Count items */
if (opt->dataType & IF_VECTOR) { if (opt->dataType & IF_VECTOR) {
n = nval.v.numValue = val->v_length; n = nval.v.numValue = val->v_length;

2
src/frontend/where.c

@ -18,6 +18,8 @@ com_where(wordlist *wl)
{ {
char *msg; char *msg;
IGNORE(wl);
/*CDHW typing where with no current circuit caused crashes CDHW*/ /*CDHW typing where with no current circuit caused crashes CDHW*/
if (!ft_curckt) { if (!ft_curckt) {
fprintf(cp_err, "There is no current circuit\n"); fprintf(cp_err, "There is no current circuit\n");

70
src/main.c

@ -237,6 +237,11 @@ IFfrontEnd nutmeginfo;
int int
if_run(CKTcircuit *t, char *w, wordlist *s, INPtables *b) if_run(CKTcircuit *t, char *w, wordlist *s, INPtables *b)
{ {
IGNORE(b);
IGNORE(s);
IGNORE(w);
IGNORE(t);
return (0); return (0);
} }
@ -244,18 +249,29 @@ if_run(CKTcircuit *t, char *w, wordlist *s, INPtables *b)
int int
if_sens_run(CKTcircuit *t, wordlist *args, INPtables *tab) if_sens_run(CKTcircuit *t, wordlist *args, INPtables *tab)
{ {
IGNORE(tab);
IGNORE(args);
IGNORE(t);
return (0); return (0);
} }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
void void
if_dump(CKTcircuit *ckt, FILE *fp) if_dump(CKTcircuit *ckt, FILE *fp)
{}
{
IGNORE(fp);
IGNORE(ckt);
return;
}
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
CKTcircuit * CKTcircuit *
if_inpdeck(struct line *deck, INPtables **tab) if_inpdeck(struct line *deck, INPtables **tab)
{ {
IGNORE(tab);
IGNORE(deck);
return NULL; return NULL;
} }
@ -263,37 +279,69 @@ if_inpdeck(struct line *deck, INPtables **tab)
int int
if_option(CKTcircuit *ckt, char *name, enum cp_types type, void *value) if_option(CKTcircuit *ckt, char *name, enum cp_types type, void *value)
{ {
IGNORE(value);
IGNORE(type);
IGNORE(name);
IGNORE(ckt);
return 0; return 0;
} }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
void if_cktfree(CKTcircuit *ckt, INPtables *tab) void if_cktfree(CKTcircuit *ckt, INPtables *tab)
{}
{
IGNORE(tab);
IGNORE(ckt);
return;
}
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
void if_setndnames(char *line) void if_setndnames(char *line)
{}
{
IGNORE(line);
}
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
char * char *
if_errstring(int code) if_errstring(int code)
{ {
IGNORE(code);
return ("spice error"); return ("spice error");
} }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
void void
if_setparam_model(CKTcircuit *ckt, char **name, char *val) if_setparam_model(CKTcircuit *ckt, char **name, char *val)
{}
{
IGNORE(val);
IGNORE(name);
IGNORE(ckt);
return;
}
void void
if_setparam(CKTcircuit *ckt, char **name, char *param, struct dvec *val, int do_model) if_setparam(CKTcircuit *ckt, char **name, char *param, struct dvec *val, int do_model)
{}
{
IGNORE(do_model);
IGNORE(val);
IGNORE(param);
IGNORE(name);
IGNORE(ckt);
return;
}
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
bool bool
if_tranparams(struct circ *ckt, double *start, double *stop, double *step) if_tranparams(struct circ *ckt, double *start, double *stop, double *step)
{ {
IGNORE(step);
IGNORE(stop);
IGNORE(start);
IGNORE(ckt);
return (FALSE); return (FALSE);
} }
@ -301,6 +349,9 @@ if_tranparams(struct circ *ckt, double *start, double *stop, double *step)
struct variable * struct variable *
if_getstat(CKTcircuit *ckt, char *name) if_getstat(CKTcircuit *ckt, char *name)
{ {
IGNORE(name);
IGNORE(ckt);
return (NULL); return (NULL);
} }
@ -322,21 +373,30 @@ Ipc_Status_t ipc_send_errchk(void ) {
} }
Ipc_Status_t ipc_get_line(char *str , int *len , Ipc_Wait_t wait ){ Ipc_Status_t ipc_get_line(char *str , int *len , Ipc_Wait_t wait ){
Ipc_Status_t x = IPC_STATUS_OK; Ipc_Status_t x = IPC_STATUS_OK;
IGNORE(str);
IGNORE(len);
IGNORE(wait);
return(x); return(x);
} }
struct line *ENHtranslate_poly(struct line *deck){ struct line *ENHtranslate_poly(struct line *deck){
IGNORE(deck);
return(NULL); return(NULL);
} }
int load_opus(char *name){ int load_opus(char *name){
IGNORE(name);
return(1); return(1);
} }
char *MIFgettok(char **s){ char *MIFgettok(char **s){
IGNORE(s);
return(NULL); return(NULL);
} }
void EVTprint(wordlist *wl){ void EVTprint(wordlist *wl){
IGNORE(wl);
return; return;
} }
struct dvec *EVTfindvec(char *node){ struct dvec *EVTfindvec(char *node){
IGNORE(node);
return NULL; return NULL;
} }
#endif /* XSPICE */ #endif /* XSPICE */

11
src/maths/cmaths/cmath2.c

@ -249,6 +249,8 @@ cx_rnd(void *data, short int type, int length, int *newlength, short int *newtyp
void * void *
cx_sunif(void *data, short int type, int length, int *newlength, short int *newtype) cx_sunif(void *data, short int type, int length, int *newlength, short int *newtype)
{ {
IGNORE(data);
*newlength = length; *newlength = length;
checkseed(); checkseed();
if (type == VF_COMPLEX) { if (type == VF_COMPLEX) {
@ -278,6 +280,8 @@ cx_sunif(void *data, short int type, int length, int *newlength, short int *newt
void * void *
cx_sgauss(void *data, short int type, int length, int *newlength, short int *newtype) cx_sgauss(void *data, short int type, int length, int *newlength, short int *newtype)
{ {
IGNORE(data);
*newlength = length; *newlength = length;
checkseed(); checkseed();
if (type == VF_COMPLEX) { if (type == VF_COMPLEX) {
@ -390,6 +394,9 @@ cx_length(void *data, short int type, int length, int *newlength, short int *new
{ {
double *d; double *d;
IGNORE(data);
IGNORE(type);
*newlength = 1; *newlength = 1;
*newtype = VF_REAL; *newtype = VF_REAL;
d = alloc_d(1); d = alloc_d(1);
@ -410,6 +417,8 @@ cx_vector(void *data, short int type, int length, int *newlength, short int *new
int i, len; int i, len;
double *d; double *d;
IGNORE(length);
if (type == VF_REAL) if (type == VF_REAL)
len = (int)FTEcabs(*dd); len = (int)FTEcabs(*dd);
else else
@ -435,6 +444,8 @@ cx_unitvec(void *data, short int type, int length, int *newlength, short int *ne
int i, len; int i, len;
double *d; double *d;
IGNORE(length);
if (type == VF_REAL) if (type == VF_REAL)
len = (int)FTEcabs(*dd); len = (int)FTEcabs(*dd);
else else

15
src/maths/sparse/spsmp.c

@ -148,6 +148,8 @@ SMPclear(SMPmatrix *Matrix)
spClear( Matrix ); spClear( Matrix );
} }
#define IGNORE(x) (void)x
/* /*
* SMPcLUfac() * SMPcLUfac()
*/ */
@ -155,6 +157,8 @@ SMPclear(SMPmatrix *Matrix)
int int
SMPcLUfac(SMPmatrix *Matrix, double PivTol) SMPcLUfac(SMPmatrix *Matrix, double PivTol)
{ {
IGNORE(PivTol);
spSetComplex( Matrix ); spSetComplex( Matrix );
return spFactor( Matrix ); return spFactor( Matrix );
} }
@ -166,6 +170,7 @@ SMPcLUfac(SMPmatrix *Matrix, double PivTol)
int int
SMPluFac(SMPmatrix *Matrix, double PivTol, double Gmin) SMPluFac(SMPmatrix *Matrix, double PivTol, double Gmin)
{ {
IGNORE(PivTol);
spSetReal( Matrix ); spSetReal( Matrix );
LoadGmin( Matrix, Gmin ); LoadGmin( Matrix, Gmin );
return spFactor( Matrix ); return spFactor( Matrix );
@ -203,6 +208,9 @@ void
SMPcaSolve(SMPmatrix *Matrix, double RHS[], double iRHS[], SMPcaSolve(SMPmatrix *Matrix, double RHS[], double iRHS[],
double Spare[], double iSpare[]) double Spare[], double iSpare[])
{ {
IGNORE(iSpare);
IGNORE(Spare);
spSolveTransposed( Matrix, RHS, RHS, iRHS, iRHS ); spSolveTransposed( Matrix, RHS, RHS, iRHS, iRHS );
} }
@ -213,6 +221,9 @@ void
SMPcSolve(SMPmatrix *Matrix, double RHS[], double iRHS[], SMPcSolve(SMPmatrix *Matrix, double RHS[], double iRHS[],
double Spare[], double iSpare[]) double Spare[], double iSpare[])
{ {
IGNORE(iSpare);
IGNORE(Spare);
spSolve( Matrix, RHS, RHS, iRHS, iRHS ); spSolve( Matrix, RHS, RHS, iRHS, iRHS );
} }
@ -222,6 +233,8 @@ SMPcSolve(SMPmatrix *Matrix, double RHS[], double iRHS[],
void void
SMPsolve(SMPmatrix *Matrix, double RHS[], double Spare[]) SMPsolve(SMPmatrix *Matrix, double RHS[], double Spare[])
{ {
IGNORE(Spare);
spSolve( Matrix, RHS, RHS, (spREAL*)NULL, (spREAL*)NULL ); spSolve( Matrix, RHS, RHS, (spREAL*)NULL, (spREAL*)NULL );
} }
@ -271,6 +284,8 @@ SMPpreOrder(SMPmatrix *Matrix)
void void
SMPprint(SMPmatrix *Matrix, FILE *File) SMPprint(SMPmatrix *Matrix, FILE *File)
{ {
IGNORE(File);
spPrint( Matrix, 0, 1, 1 ); spPrint( Matrix, 0, 1, 1 );
} }

1
src/ngnutmeg.c

@ -68,6 +68,7 @@ IFsimulator SIMinfo = {
void void
NDEVacct(CKTcircuit *ckt, FILE *file) NDEVacct(CKTcircuit *ckt, FILE *file)
{ {
IGNORE(ckt);
fprintf(file, "Ouch, you have called NDEV from ngnutmeg\n"); fprintf(file, "Ouch, you have called NDEV from ngnutmeg\n");
} }
#endif #endif

25
src/ngsconvert.c

@ -437,18 +437,23 @@ void cp_pushcontrol(void) { }
void cp_popcontrol(void) { } void cp_popcontrol(void) { }
void out_init(void) { } void out_init(void) { }
void cp_doquit(void) { exit(0); } void cp_doquit(void) { exit(0); }
void cp_usrvars(struct variable **v1, struct variable **v2) { return; }
int cp_evloop(char *s) { return (0); }
void cp_ccon(bool o) { }
char *if_errstring(int c) { return ("error"); }
void cp_usrvars(struct variable **v1, struct variable **v2) { IGNORE(v2); IGNORE(v1); return; }
int cp_evloop(char *s) { IGNORE(s); return (0); }
void cp_ccon(bool o) { IGNORE(o); }
char*if_errstring(int c) { IGNORE(c); return ("error"); }
#ifndef out_printf #ifndef out_printf
void out_printf(char *fmt, ...) { }
void out_printf(char *fmt, ...) { IGNORE(fmt); }
#endif #endif
void out_send(char *string) {}
struct variable * cp_enqvar(char *word) { return (NULL); }
struct dvec *vec_get(const char *word) { return (NULL); }
void cp_ccom(wordlist *w, char *b, bool e) { return; }
int cp_usrset(struct variable *v, bool i) { return(US_OK); }
void out_send(char *string) { IGNORE(string); }
struct variable * cp_enqvar(char *word) { IGNORE(word); return (NULL); }
struct dvec *vec_get(const char *word) { IGNORE(word); return (NULL); }
void cp_ccom(wordlist *w, char *b, bool e) {
IGNORE(e);
IGNORE(b);
IGNORE(w); return; }
int cp_usrset(struct variable *v, bool i) {
IGNORE(i);
IGNORE(v); return(US_OK); }
int disptype; int disptype;

2
src/spicelib/analysis/acaskq.c

@ -16,6 +16,8 @@ Author: 1985 Thomas L. Quarles
int int
ACaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) ACaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case AC_START: case AC_START:

2
src/spicelib/analysis/acsetp.c

@ -15,6 +15,8 @@ Author: 1985 Thomas L. Quarles
int int
ACsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) ACsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case AC_START: case AC_START:

2
src/spicelib/analysis/cktacct.c

@ -24,6 +24,8 @@ Author: 1985 Thomas L. Quarles
int int
CKTacct(CKTcircuit *ckt, JOB *anal, int which, IFvalue *val) CKTacct(CKTcircuit *ckt, JOB *anal, int which, IFvalue *val)
{ {
IGNORE(anal);
switch(which) { switch(which) {
case OPT_EQNS: case OPT_EQNS:

2
src/spicelib/analysis/cktaskaq.c

@ -20,6 +20,8 @@ CKTaskAnalQ(CKTcircuit *ckt, JOB *analPtr, int parm, IFvalue *value, IFvalue *se
{ {
int type = analPtr->JOBtype; int type = analPtr->JOBtype;
IGNORE(selector);
if((analInfo[type]->askQuest) == NULL) return(E_BADPARM); if((analInfo[type]->askQuest) == NULL) return(E_BADPARM);
return( (*(analInfo[type]->askQuest))(ckt,analPtr,parm,value)); return( (*(analInfo[type]->askQuest))(ckt,analPtr,parm,value));
} }

3
src/spicelib/analysis/cktasknq.c

@ -21,6 +21,9 @@ Author: 1985 Thomas L. Quarles
int int
CKTaskNodQst(CKTcircuit *ckt, CKTnode *node, int parm, IFvalue *value, IFvalue *selector) CKTaskNodQst(CKTcircuit *ckt, CKTnode *node, int parm, IFvalue *value, IFvalue *selector)
{ {
IGNORE(ckt);
IGNORE(selector);
if(!node) return(E_BADPARM); if(!node) return(E_BADPARM);
switch(parm) { switch(parm) {

3
src/spicelib/analysis/cktdelt.c

@ -17,6 +17,9 @@ CKTdelTask(CKTcircuit *ckt, TSKtask *task)
{ {
JOB *job; JOB *job;
JOB *old=NULL; JOB *old=NULL;
IGNORE(ckt);
for(job = task->jobs; job; job=job->JOBnextJob){ for(job = task->jobs; job; job=job->JOBnextJob){
if(old) FREE(old); if(old) FREE(old);
old=job; old=job;

3
src/spicelib/analysis/cktdlti.c

@ -20,5 +20,8 @@ Author: 1985 Thomas L. Quarles
int int
CKTdltInst(CKTcircuit *ckt, void *instance) CKTdltInst(CKTcircuit *ckt, void *instance)
{ {
IGNORE(ckt);
IGNORE(instance);
return(E_UNSUPP); return(E_UNSUPP);
} }

4
src/spicelib/analysis/cktfnda.c

@ -25,6 +25,10 @@ CKTfndAnal(CKTcircuit *ckt, int *analIndex, JOB **anal, IFuid name, TSKtask *inT
TSKtask *task = /* fixme, drop that */ inTask; TSKtask *task = /* fixme, drop that */ inTask;
JOB *here; JOB *here;
IGNORE(ckt);
IGNORE(analIndex);
IGNORE(taskName);
for (here = task->jobs; here; here = here->JOBnextJob) { for (here = task->jobs; here; here = here->JOBnextJob) {
if(strcmp(here->JOBname,name)==0) { if(strcmp(here->JOBname,name)==0) {
if(anal) *anal = here; if(anal) *anal = here;

4
src/spicelib/analysis/cktftask.c

@ -20,5 +20,9 @@ Author: 1985 Thomas L. Quarles
int int
CKTfndTask(CKTcircuit *ckt, TSKtask **taskPtr, IFuid taskName) CKTfndTask(CKTcircuit *ckt, TSKtask **taskPtr, IFuid taskName)
{ {
IGNORE(ckt);
IGNORE(taskPtr);
IGNORE(taskName);
return(E_UNSUPP); return(E_UNSUPP);
} }

3
src/spicelib/analysis/cktmask.c

@ -19,6 +19,9 @@ int
CKTmodAsk(CKTcircuit *ckt, GENmodel *modfast, int which, IFvalue *value, IFvalue *selector) CKTmodAsk(CKTcircuit *ckt, GENmodel *modfast, int which, IFvalue *value, IFvalue *selector)
{ {
int type = modfast->GENmodType; int type = modfast->GENmodType;
IGNORE(selector);
if((*DEVices[type]).DEVmodAsk) { if((*DEVices[type]).DEVmodAsk) {
return( (*((*DEVices[type]).DEVmodAsk)) (ckt, return( (*((*DEVices[type]).DEVmodAsk)) (ckt,
modfast, which, value) ); modfast, which, value) );

2
src/spicelib/analysis/cktmknod.c

@ -21,6 +21,8 @@ CKTmkNode(CKTcircuit *ckt, CKTnode **node)
{ {
CKTnode *mynode; CKTnode *mynode;
IGNORE(ckt);
mynode = TMALLOC(CKTnode, 1); mynode = TMALLOC(CKTnode, 1);
if(mynode == (CKTnode *)NULL) return(E_NOMEM); if(mynode == (CKTnode *)NULL) return(E_NOMEM);
mynode->next = (CKTnode *)NULL; mynode->next = (CKTnode *)NULL;

3
src/spicelib/analysis/cktmpar.c

@ -20,6 +20,9 @@ CKTmodParam(CKTcircuit *ckt, GENmodel *modfast, int param, IFvalue *val, IFvalue
{ {
int type = modfast->GENmodType; int type = modfast->GENmodType;
IGNORE(ckt);
IGNORE(selector);
if (((*DEVices[type]).DEVmodParam)) { if (((*DEVices[type]).DEVmodParam)) {
return(((*((*DEVices[type]).DEVmodParam)) (param,val, return(((*((*DEVices[type]).DEVmodParam)) (param,val,
modfast))); modfast)));

2
src/spicelib/analysis/cktnewan.c

@ -18,6 +18,8 @@ extern SPICEanalysis *analInfo[];
int int
CKTnewAnal(CKTcircuit *ckt, int type, IFuid name, JOB **analPtr, TSKtask *taskPtr) CKTnewAnal(CKTcircuit *ckt, int type, IFuid name, JOB **analPtr, TSKtask *taskPtr)
{ {
IGNORE(ckt);
if(type==0) { if(type==0) {
/* special case for analysis type 0 == option card */ /* special case for analysis type 0 == option card */
*analPtr = &(taskPtr->taskOptions); /* pointer to the task itself */ *analPtr = &(taskPtr->taskOptions); /* pointer to the task itself */

2
src/spicelib/analysis/cktntask.c

@ -24,6 +24,8 @@ CKTnewTask(CKTcircuit *ckt, TSKtask **taskPtr, IFuid taskName, TSKtask **defPtr)
{ {
TSKtask *tsk, *def=NULL; TSKtask *tsk, *def=NULL;
IGNORE(ckt);
*taskPtr = TMALLOC(TSKtask, 1); *taskPtr = TMALLOC(TSKtask, 1);
if(*taskPtr==NULL) return(E_NOMEM); if(*taskPtr==NULL) return(E_NOMEM);
tsk = *taskPtr; tsk = *taskPtr;

4
src/spicelib/analysis/cktop.c

@ -393,6 +393,8 @@ gillespie_src (CKTcircuit * ckt, long int firstmode,
double *OldRhsOld, *OldCKTstate0; double *OldRhsOld, *OldCKTstate0;
CKTnode *n; CKTnode *n;
IGNORE(iterlim);
ckt->CKTmode = firstmode; ckt->CKTmode = firstmode;
(*(SPfrontEnd->IFerror)) (ERR_INFO, (*(SPfrontEnd->IFerror)) (ERR_INFO,
"Starting source stepping", (IFuid *) NULL); "Starting source stepping", (IFuid *) NULL);
@ -599,6 +601,8 @@ spice3_src (CKTcircuit * ckt, long int firstmode,
int converged, i; int converged, i;
IGNORE(iterlim);
ckt->CKTmode = firstmode; ckt->CKTmode = firstmode;
(*(SPfrontEnd->IFerror)) (ERR_INFO, (*(SPfrontEnd->IFerror)) (ERR_INFO,
"Starting source stepping", (IFuid *) NULL); "Starting source stepping", (IFuid *) NULL);

3
src/spicelib/analysis/cktparam.c

@ -20,6 +20,9 @@ CKTparam(CKTcircuit *ckt, GENinstance *fast, int param, IFvalue *val, IFvalue *s
{ {
int type; int type;
GENinstance *myfast = /*fixme*/ fast; GENinstance *myfast = /*fixme*/ fast;
IGNORE(ckt);
type = myfast->GENmodPtr->GENmodType; type = myfast->GENmodPtr->GENmodType;
if(((*DEVices[type]).DEVparam)) { if(((*DEVices[type]).DEVparam)) {
return(((*((*DEVices[type]).DEVparam)) (param,val,myfast,selector))); return(((*((*DEVices[type]).DEVparam)) (param,val,myfast,selector)));

2
src/spicelib/analysis/cktpmnam.c

@ -31,6 +31,8 @@ CKTpModName(char *parm, IFvalue *val, CKTcircuit *ckt, int type, IFuid name, GEN
int error; /* int to store evaluate error return codes in */ int error; /* int to store evaluate error return codes in */
int i; int i;
IGNORE(name);
for(i=0;i<(*(*DEVices[type]).DEVpublic.numModelParms);i++) { for(i=0;i<(*(*DEVices[type]).DEVpublic.numModelParms);i++) {
if(strcmp(parm,((*DEVices[type]).DEVpublic.modelParms[i].keyword))==0){ if(strcmp(parm,((*DEVices[type]).DEVpublic.modelParms[i].keyword))==0){
error = CKTmodParam(ckt, *modfast, error = CKTmodParam(ckt, *modfast,

2
src/spicelib/analysis/cktpname.c

@ -33,6 +33,8 @@ CKTpName(char *parm, IFvalue *val, CKTcircuit *ckt, int dev, char *name, GENinst
int error; /* int to store evaluate error return codes in */ int error; /* int to store evaluate error return codes in */
int i; int i;
IGNORE(name);
for(i=0;i<(*(*DEVices[dev]).DEVpublic.numInstanceParms);i++) { for(i=0;i<(*(*DEVices[dev]).DEVpublic.numInstanceParms);i++) {
if(strcmp(parm, if(strcmp(parm,
((*DEVices[dev]).DEVpublic.instanceParms[i].keyword))==0) { ((*DEVices[dev]).DEVpublic.instanceParms[i].keyword))==0) {

2
src/spicelib/analysis/cktpzstr.c

@ -781,6 +781,8 @@ CKTpzVerify(PZtrial **set, PZtrial *new_trial)
PZtrial *t, *prev; PZtrial *t, *prev;
IGNORE(set);
NZeros += 1; NZeros += 1;
if (new_trial->s.imag != 0.0) if (new_trial->s.imag != 0.0)
NZeros += 1; NZeros += 1;

4
src/spicelib/analysis/cktsens.c

@ -719,6 +719,8 @@ sens_getp(sgen *sg, CKTcircuit *ckt, IFvalue *val)
{ {
int pid; int pid;
IGNORE(ckt);
error = 0; error = 0;
if (sg->is_instparam) { if (sg->is_instparam) {
@ -763,6 +765,8 @@ sens_setp(sgen *sg, CKTcircuit *ckt, IFvalue *val)
{ {
int pid; int pid;
IGNORE(ckt);
error = 0; error = 0;
if (sg->is_instparam) { if (sg->is_instparam) {

3
src/spicelib/analysis/cktsetap.c

@ -19,6 +19,9 @@ int
CKTsetAnalPm(CKTcircuit *ckt, JOB *analPtr, int parm, IFvalue *value, IFvalue *selector) CKTsetAnalPm(CKTcircuit *ckt, JOB *analPtr, int parm, IFvalue *value, IFvalue *selector)
{ {
int type = analPtr->JOBtype; int type = analPtr->JOBtype;
IGNORE(selector);
if((analInfo[type]->setParm)==NULL) return(E_BADPARM); if((analInfo[type]->setParm)==NULL) return(E_BADPARM);
return( (*(analInfo[type]->setParm))(ckt,analPtr,parm,value) ); return( (*(analInfo[type]->setParm))(ckt,analPtr,parm,value) );
} }

3
src/spicelib/analysis/cktsetnp.c

@ -20,6 +20,9 @@ Author: 1985 Thomas L. Quarles
int int
CKTsetNodPm(CKTcircuit *ckt, CKTnode *node, int parm, IFvalue *value, IFvalue *selector) CKTsetNodPm(CKTcircuit *ckt, CKTnode *node, int parm, IFvalue *value, IFvalue *selector)
{ {
IGNORE(ckt);
IGNORE(selector);
if(!node) return(E_BADPARM); if(!node) return(E_BADPARM);
switch(parm) { switch(parm) {

3
src/spicelib/analysis/cktsgen.c

@ -179,16 +179,19 @@ sgen_next(sgen **xsg)
int set_inst(sgen *sg) int set_inst(sgen *sg)
{ {
IGNORE(sg);
return 1; return 1;
} }
int set_model(sgen *sg) int set_model(sgen *sg)
{ {
IGNORE(sg);
return 1; return 1;
} }
int set_dev(sgen *sg) int set_dev(sgen *sg)
{ {
IGNORE(sg);
return 1; return 1;
} }

2
src/spicelib/analysis/cktsopt.c

@ -32,6 +32,8 @@ CKTsetOpt(CKTcircuit *ckt, JOB *anal, int opt, IFvalue *val)
{ {
TSKtask *task = (TSKtask *)anal; TSKtask *task = (TSKtask *)anal;
IGNORE(ckt);
switch(opt) { switch(opt) {
case OPT_NOOPITER: case OPT_NOOPITER:

2
src/spicelib/analysis/daskq.c

@ -14,6 +14,8 @@ Author: 1988 Jaijeet S Roychowdhury
int int
DaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case D_START: case D_START:

4
src/spicelib/analysis/dcoaskq.c

@ -14,6 +14,10 @@ Author: 1985 Thomas L. Quarles
int int
DCOaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DCOaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
IGNORE(anal);
IGNORE(which);
IGNORE(value);
return(E_BADPARM); return(E_BADPARM);
} }

2
src/spicelib/analysis/dcop.c

@ -26,6 +26,8 @@ DCop(CKTcircuit *ckt, int notused)
IFuid *nameList; /* va: tmalloc'ed list */ IFuid *nameList; /* va: tmalloc'ed list */
int numNames; int numNames;
void *plot = NULL; void *plot = NULL;
IGNORE(notused);
#ifdef XSPICE #ifdef XSPICE
/* gtri - add - wbk - 12/19/90 - Add IPC stuff and initialize anal_init and anal_type */ /* gtri - add - wbk - 12/19/90 - Add IPC stuff and initialize anal_init and anal_type */

4
src/spicelib/analysis/dcosetp.c

@ -16,6 +16,10 @@ Author: 1985 Thomas L. Quarles
int int
DCOsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DCOsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
IGNORE(anal);
IGNORE(value);
switch(which) { switch(which) {
default: default:

3
src/spicelib/analysis/dctaskq.c

@ -14,6 +14,9 @@ Author: 1985 Thomas L. Quarles
int int
DCTaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DCTaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
IGNORE(anal);
IGNORE(value);
switch(which) { switch(which) {
default: default:

3
src/spicelib/analysis/dctsetp.c

@ -16,6 +16,9 @@ int
DCTsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DCTsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
TRCV* cv= (TRCV*)anal; TRCV* cv= (TRCV*)anal;
IGNORE(ckt);
switch(which) { switch(which) {
case DCT_START1: case DCT_START1:

2
src/spicelib/analysis/distoan.c

@ -56,6 +56,8 @@ DISTOan(CKTcircuit *ckt, int restart)
double time,time1; double time,time1;
#endif #endif
IGNORE(restart);
/* start at beginning */ /* start at beginning */

2
src/spicelib/analysis/dkerproc.c

@ -14,6 +14,8 @@ DkerProc(int type, double *rPtr, double *iPtr, int size, DISTOAN *job)
{ {
int i; int i;
IGNORE(job);
switch(type) { switch(type) {
case D_F1: case D_F1:

2
src/spicelib/analysis/dsetparm.c

@ -15,6 +15,8 @@ Author: 1988 Jaijeet S Roychowdhury
int int
DsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) DsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case D_START: case D_START:

2
src/spicelib/analysis/naskq.c

@ -13,6 +13,8 @@ Author: 1987 Gary W. Ng
int int
NaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) NaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case N_OUTPUT: case N_OUTPUT:

2
src/spicelib/analysis/nsetparm.c

@ -14,6 +14,8 @@ Author: 1987 Gary W. Ng
int int
NsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) NsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case N_OUTPUT: case N_OUTPUT:

2
src/spicelib/analysis/pzan.c

@ -23,6 +23,8 @@ PZan(CKTcircuit *ckt, int reset)
IFuid *nameList; IFuid *nameList;
void *plot = NULL; void *plot = NULL;
IGNORE(reset);
error = PZinit(ckt); error = PZinit(ckt);
if (error != OK) return error; if (error != OK) return error;

2
src/spicelib/analysis/pzsetp.c

@ -16,6 +16,8 @@ Author: 1985 Thomas L. Quarles
int int
PZsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) PZsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case PZ_NODEI: case PZ_NODEI:

2
src/spicelib/analysis/sensaskq.c

@ -15,6 +15,8 @@ SENSask(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
SENS_AN *sinfo = (SENS_AN *) anal; SENS_AN *sinfo = (SENS_AN *) anal;
IGNORE(ckt);
switch (which) { switch (which) {
case SENS_START: case SENS_START:

2
src/spicelib/analysis/senssetp.c

@ -16,6 +16,8 @@ SENSsetParam(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
SENS_AN *sinfo = (SENS_AN *) anal; SENS_AN *sinfo = (SENS_AN *) anal;
IGNORE(ckt);
switch(which) { switch(which) {
case SENS_POS: case SENS_POS:

1
src/spicelib/analysis/tfanal.c

@ -38,6 +38,7 @@ TFanal(CKTcircuit *ckt, int restart)
#define inuid (uids[1]) /* unique id for the transfer function input imp. */ #define inuid (uids[1]) /* unique id for the transfer function input imp. */
#define outuid (uids[2]) /* unique id for the transfer function out. imp. */ #define outuid (uids[2]) /* unique id for the transfer function out. imp. */
IGNORE(restart);
/* first, find the operating point */ /* first, find the operating point */
converged = CKTop(ckt, converged = CKTop(ckt,

4
src/spicelib/analysis/tfaskq.c

@ -14,6 +14,10 @@ Author: 1985 Thomas L. Quarles
int int
TFaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) TFaskQuest(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(value);
IGNORE(anal);
IGNORE(ckt);
switch(which) { switch(which) {
default: default:

2
src/spicelib/analysis/tfsetp.c

@ -15,6 +15,8 @@ Author: 1985 Thomas L. Quarles
int int
TFsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) TFsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case TF_OUTPOS: case TF_OUTPOS:

2
src/spicelib/analysis/tranaskq.c

@ -13,6 +13,8 @@ Author: 1985 Thomas L. Quarles
int int
TRANaskQuest(CKTcircuit *ckt, JOB *anal, int which,IFvalue *value) TRANaskQuest(CKTcircuit *ckt, JOB *anal, int which,IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case TRAN_TSTOP: case TRAN_TSTOP:

2
src/spicelib/analysis/transetp.c

@ -15,6 +15,8 @@ Author: 1985 Thomas L. Quarles
int int
TRANsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value) TRANsetParm(CKTcircuit *ckt, JOB *anal, int which, IFvalue *value)
{ {
IGNORE(ckt);
switch(which) { switch(which) {
case TRAN_TSTOP: case TRAN_TSTOP:

2
src/spicelib/devices/asrc/asrcacld.c

@ -30,6 +30,8 @@ ASRCacLoad(GENmodel *inModel, CKTcircuit *ckt)
double *derivs; double *derivs;
double rhs; double rhs;
IGNORE(ckt);
/* loop through all the Arbitrary source models */ /* loop through all the Arbitrary source models */
for( ; model != NULL; model = model->ASRCnextModel ) { for( ; model != NULL; model = model->ASRCnextModel ) {

2
src/spicelib/devices/asrc/asrcask.c

@ -26,6 +26,8 @@ ASRCask(CKTcircuit *ckt, GENinstance *instPtr, int which, IFvalue *value, IFvalu
{ {
ASRCinstance *here = (ASRCinstance*)instPtr; ASRCinstance *here = (ASRCinstance*)instPtr;
IGNORE(select);
switch(which) { switch(which) {
case ASRC_CURRENT: case ASRC_CURRENT:
value->tValue = here->ASRCtype == ASRC_CURRENT ? value->tValue = here->ASRCtype == ASRC_CURRENT ?

3
src/spicelib/devices/asrc/asrcpar.c

@ -18,6 +18,9 @@ int
ASRCparam(int param, IFvalue *value, GENinstance *fast, IFvalue *select) ASRCparam(int param, IFvalue *value, GENinstance *fast, IFvalue *select)
{ {
ASRCinstance *here = (ASRCinstance*)fast; ASRCinstance *here = (ASRCinstance*)fast;
IGNORE(select);
switch(param) { switch(param) {
case ASRC_VOLTAGE: case ASRC_VOLTAGE:
here->ASRCtype = ASRC_VOLTAGE; here->ASRCtype = ASRC_VOLTAGE;

2
src/spicelib/devices/asrc/asrcpzld.c

@ -23,6 +23,8 @@ ASRCpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s)
double value; double value;
int i, j; int i, j;
IGNORE(s);
/* loop through all the Arbitrary source models */ /* loop through all the Arbitrary source models */
for( ; model != NULL; model = model->ASRCnextModel ) { for( ; model != NULL; model = model->ASRCnextModel ) {

2
src/spicelib/devices/asrc/asrcset.c

@ -27,6 +27,8 @@ ASRCsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
int v_first; int v_first;
CKTnode *tmp; CKTnode *tmp;
IGNORE(states);
/* loop through all the user models*/ /* loop through all the user models*/
for( ; model != NULL; model = model->ASRCnextModel ) { for( ; model != NULL; model = model->ASRCnextModel ) {

2
src/spicelib/devices/bjt/bjtmask.c

@ -21,6 +21,8 @@ BJTmAsk(CKTcircuit *ckt, GENmodel *instPtr, int which, IFvalue *value)
{ {
BJTmodel *here = (BJTmodel*)instPtr; BJTmodel *here = (BJTmodel*)instPtr;
IGNORE(ckt);
switch(which) { switch(which) {
case BJT_MOD_TNOM: case BJT_MOD_TNOM:
value->rValue = here->BJTtnom-CONSTCtoK; value->rValue = here->BJTtnom-CONSTCtoK;

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save