diff options
author | Jim Meyering <meyering@redhat.com> | 2010-08-10 08:11:15 -0700 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-08-10 08:11:15 -0700 |
commit | ec0d6ddb813e95a01421b45f1743713e88175448 (patch) | |
tree | e705f6131b0cdc50981f9a0366ac1431ff3b5d09 | |
parent | 4e6bac4ca3be9cd3f280738a6fe8067a12518fda (diff) | |
download | coreutils-ec0d6ddb813e95a01421b45f1743713e88175448.tar.xz |
sort: avoid gcc warning: explicitly ignore strtold result
* src/sort.c: Include "ignore-value.h".
(debug_key): Use ignore_value.
-rw-r--r-- | src/sort.c | 3 |
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 == '-'); |