Fix some warnings.
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
#include "patchlevel.h"
|
||||
#include "calctool.h"
|
||||
#include "ds_common.h"
|
||||
#include "calctool.h"
|
||||
#include "text.h"
|
||||
|
||||
static double max_fix[4] = {
|
||||
@@ -1203,8 +1202,8 @@ make_number(int *MPnumber, BOOLEAN mkFix)
|
||||
|
||||
/*ARGSUSED*/
|
||||
/* Default math library exception handling routine. */
|
||||
int
|
||||
matherr(struct exception *exc)
|
||||
void
|
||||
math_err(void)
|
||||
{
|
||||
#if 0
|
||||
char msg[100];
|
||||
@@ -1232,7 +1231,6 @@ matherr(struct exception *exc)
|
||||
#endif
|
||||
|
||||
doerr(vstrs[(int) V_ERROR]) ;
|
||||
return(1) ; /* Value ignored. */
|
||||
}
|
||||
|
||||
/* Convert string into an MP number. */
|
||||
|
||||
@@ -636,6 +636,7 @@ void make_items(void);
|
||||
void make_modewin(void);
|
||||
void make_fin_registers(void);
|
||||
void make_registers(int);
|
||||
void math_err(void);
|
||||
void MPstr_to_num(char *, enum base_type, int *);
|
||||
void paren_disp(char);
|
||||
void process_event(int);
|
||||
|
||||
@@ -677,7 +677,7 @@ do_factorial(int *MPval, int *MPres) /* Calculate the factorial of MPval. */
|
||||
}
|
||||
mpcim(&i, MPa) ;
|
||||
mpcmi(MP1, &i) ;
|
||||
if (!i) matherr((struct exception *) NULL) ;
|
||||
if (!i) math_err() ;
|
||||
else
|
||||
while (i > 0)
|
||||
{
|
||||
@@ -687,7 +687,7 @@ do_factorial(int *MPval, int *MPres) /* Calculate the factorial of MPval. */
|
||||
i-- ;
|
||||
}
|
||||
}
|
||||
else matherr((struct exception *) NULL) ;
|
||||
else math_err() ;
|
||||
mpstr(MPa, MPres) ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user