Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/historical/nawk/dist remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/0bf7f739a031
branches:  trunk
changeset: 790788:0bf7f739a031
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 20 21:35:46 2013 +0000

description:
remove unused variable

diffstat:

 external/historical/nawk/dist/lib.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 308218f56f8a -r 0bf7f739a031 external/historical/nawk/dist/lib.c
--- a/external/historical/nawk/dist/lib.c       Sun Oct 20 21:17:28 2013 +0000
+++ b/external/historical/nawk/dist/lib.c       Sun Oct 20 21:35:46 2013 +0000
@@ -753,10 +753,9 @@
 #include <math.h>
 int is_number(const char *s)
 {
-       double r;
        char *ep;
        errno = 0;
-       r = strtod(s, &ep);
+       (void)strtod(s, &ep);
        if (ep == s || errno == ERANGE)
                return 0;
        if (ep - s >= 3 && strncasecmp(ep - 3, "nan", 3) == 0)



Home | Main Index | Thread Index | Old Index