Fix some warnings.

This commit is contained in:
hyousatsu
2024-07-06 09:42:25 +00:00
parent c79224b367
commit f0123efa84
44 changed files with 95 additions and 95 deletions

View File

@@ -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. */

View File

@@ -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);

View File

@@ -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) ;
}