summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-08-10 08:11:15 -0700
committerJim Meyering <meyering@redhat.com>2010-08-10 08:11:15 -0700
commitec0d6ddb813e95a01421b45f1743713e88175448 (patch)
treee705f6131b0cdc50981f9a0366ac1431ff3b5d09 /src
parent4e6bac4ca3be9cd3f280738a6fe8067a12518fda (diff)
downloadcoreutils-ec0d6ddb813e95a01421b45f1743713e88175448.tar.xz
sort: avoid gcc warning: explicitly ignore strtold result
* src/sort.c: Include "ignore-value.h". (debug_key): Use ignore_value.
Diffstat (limited to 'src')
-rw-r--r--src/sort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index 148ed3ee7..084f4e328 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -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 == '-');