sort: avoid gcc warning: explicitly ignore strtold result
authorJim Meyering <meyering@redhat.com>
Tue, 10 Aug 2010 15:11:15 +0000 (08:11 -0700)
committerJim Meyering <meyering@redhat.com>
Tue, 10 Aug 2010 15:11:15 +0000 (08:11 -0700)
* src/sort.c: Include "ignore-value.h".
(debug_key): Use ignore_value.

src/sort.c

index 148ed3e..084f4e3 100644 (file)
@@ -35,6 +35,7 @@
 #include "hard-locale.h"
 #include "hash.h"
 #include "heap.h"
+#include "ignore-value.h"
 #include "md5.h"
 #include "mbswidth.h"
 #include "nproc.h"
@@ -2204,7 +2205,7 @@ debug_key (struct line const *line, struct keyfield const *key)
           if (key->month)
             getmonth (beg, &tighter_lim);
           else if (key->general_numeric)
-            strtold (beg, &tighter_lim);
+            ignore_value (strtold (beg, &tighter_lim));
           else if (key->numeric || key->human_numeric)
             {
               char *p = beg + (beg < lim && *beg == '-');