remoce compiler warnings
This commit is contained in:
parent
1ea76af678
commit
6d7ee3632e
|
|
@ -1,3 +1,7 @@
|
|||
2010-12-30 Holger Vogt
|
||||
* aspice.c, inpcom.c, numparam/general.h, 1-f-code.h, equality.c
|
||||
randnumb.c, spdefs.h, cktsens.c: remove compiler warnings
|
||||
|
||||
2010-12-28 Holger Vogt
|
||||
* xpressn.c, cmath2.c, cmath2.h, randnumb.c, parse.c,
|
||||
examples/Monte_Carlo/MonteCarlo.sp:
|
||||
|
|
|
|||
|
|
@ -431,7 +431,7 @@ com_jobs(
|
|||
}
|
||||
|
||||
void
|
||||
ft_checkkids( )
|
||||
ft_checkkids(void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4040,7 +4040,7 @@ static void inp_compat(struct line *deck)
|
|||
cut_line = str_ptr;
|
||||
// generate node
|
||||
out_ptr = TMALLOC(char, 6);
|
||||
sprintf(out_ptr, "pa_%02d", pai);
|
||||
sprintf(out_ptr, "pa_%02d", (int)pai);
|
||||
// Bout_ptr out_ptr 0 V = v(expr_ptr)
|
||||
xlen = 2*strlen(out_ptr) + strlen(exp_ptr )+ 15 - 2*3 + 1;
|
||||
ckt_array[pai] = TMALLOC(char, xlen);
|
||||
|
|
@ -4071,7 +4071,7 @@ static void inp_compat(struct line *deck)
|
|||
exp_ptr = copy_substring(beg_ptr, end_ptr-3);
|
||||
// generate node
|
||||
out_ptr = TMALLOC(char, 6);
|
||||
sprintf(out_ptr, "pa_%02d", pai);
|
||||
sprintf(out_ptr, "pa_%02d", (int)pai);
|
||||
// Bout_ptr out_ptr 0 V = v(expr_ptr)
|
||||
xlen = 2*strlen(out_ptr) + strlen(exp_ptr )+ 15 - 2*3 + 1;
|
||||
ckt_array[pai] = TMALLOC(char, xlen);
|
||||
|
|
@ -4157,7 +4157,7 @@ static void inp_compat(struct line *deck)
|
|||
cut_line = str_ptr;
|
||||
// generate node
|
||||
out_ptr = TMALLOC(char, 6);
|
||||
sprintf(out_ptr, "pa_%02d", pai);
|
||||
sprintf(out_ptr, "pa_%02d", (int)pai);
|
||||
// Bout_ptr out_ptr 0 V = v(expr_ptr)
|
||||
xlen = 2*strlen(out_ptr) + strlen(exp_ptr )+ 15 - 2*3 + 1;
|
||||
ckt_array[pai] = TMALLOC(char, xlen);
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ void strif(long n, int f, SPICE_DSTRINGPTR dstr_p);
|
|||
void strf(double x, int a, int b, SPICE_DSTRINGPTR dstr_p); /* float -> string */
|
||||
long ival(char * s, int *err);
|
||||
double rval(char * s, int *err);
|
||||
int posi (char *sub, char *s, int opt);
|
||||
|
||||
char upcase(char c);
|
||||
char lowcase(char c);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ trnoise_state_get(struct trnoise_state *this, CKTcircuit *ckt, size_t index)
|
|||
|
||||
if(index + TRNOISE_STATE_MEM_LEN < this->top) {
|
||||
fprintf(stderr, "ouch, trying to fetch from the past %d %d\n",
|
||||
index, this->top);
|
||||
(int)index, (int)this->top);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Copyright 1991 Regents of the University of California. All rights reserved.
|
|||
#ifdef _MSC_VER
|
||||
typedef __int64 long64;
|
||||
#else
|
||||
extern long long llabs(long long);
|
||||
//extern long long llabs(long long);
|
||||
typedef long long long64;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ double exprand(double);
|
|||
void checkseed(void);
|
||||
double drand(void);
|
||||
double gauss0(void);
|
||||
void rgauss(double* py1, double* py2);
|
||||
int poisson(double);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -798,5 +798,7 @@ extern void spcLinkRows( MatrixPtr );
|
|||
extern void spcColExchange( MatrixPtr, int, int );
|
||||
extern void spcRowExchange( MatrixPtr, int, int );
|
||||
|
||||
void spErrorMessage(MatrixPtr, FILE *, char *);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -605,7 +605,7 @@ inc_freq(double freq, int type, double step_size)
|
|||
|
||||
return freq;
|
||||
}
|
||||
|
||||
/*
|
||||
static double
|
||||
next_freq(int type, double freq, double stepsize)
|
||||
{
|
||||
|
|
@ -627,7 +627,7 @@ next_freq(int type, double freq, double stepsize)
|
|||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
*/
|
||||
int
|
||||
count_steps(int type, double low, double high, int steps, double *stepsize)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue