sort: avoid gcc warning: explicitly ignore strtold result

* src/sort.c: Include "ignore-value.h".
(debug_key): Use ignore_value.
This commit is contained in:
Jim Meyering committed 2010-08-10 08:11:15 -07:00
1 parent 4e6bac4ca3
commit ec0d6ddb81
1 file changed
+2 -1
+2 -1
View 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 == '-');