From ea0cd1797404cfebbd7718f71748d0a9517b19cd Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 5 Mar 2016 21:07:56 +0100 Subject: [PATCH] numparam/xpressn.c, fix a warning --- src/frontend/numparam/xpressn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 159cef68e..a8f3e0c05 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -885,6 +885,8 @@ operate(char op, double x, double y) } +#define nprece 9 /* maximal nb of precedence levels */ + static double formula(dico_t *dico, const char *s, const char *s_end, bool *perror) { @@ -897,7 +899,6 @@ formula(dico_t *dico, const char *s, const char *s_end, bool *perror) States : 1=atom, 2=binOp, 3=unOp, 4= stop-codon. Allowed transitions: 1->2->(3,1) and 3->(3,1). */ - typedef enum {nprece = 9} _nnprece; /* maximal nb of precedence levels */ bool error = *perror; bool negate = 0; unsigned char state, oldstate, topop, ustack, level, fu;