diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | profile.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2015-12-16 Arnold D. Robbins <arnold@skeeve.com> + + * profile.c (pp_number): Move count into ifdef for MPFR. Avoids + an unused variable warning if not compiling for MPFR. + 2015-11-26 Arnold D. Robbins <arnold@skeeve.com> * command.y (cmdtab): Add "exit" as synonym for "quit". @@ -1324,9 +1324,10 @@ pp_number(NODE *n) { #define PP_PRECISION 6 char *str; - size_t count; #ifdef HAVE_MPFR + size_t count; + if (is_mpg_float(n)) { count = mpfr_get_prec(n->mpg_numbr) / 3; /* ~ 3.22 binary digits per decimal digit */ emalloc(str, char *, count, "pp_number"); |