From: Jim Meyering Date: Tue, 10 Aug 2010 15:11:15 +0000 (-0700) Subject: sort: avoid gcc warning: explicitly ignore strtold result X-Git-Tag: v8.6~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec0d6ddb813e95a01421b45f1743713e88175448;p=thirdparty%2Fcoreutils.git sort: avoid gcc warning: explicitly ignore strtold result * src/sort.c: Include "ignore-value.h". (debug_key): Use ignore_value. --- diff --git a/src/sort.c b/src/sort.c index 148ed3ee7a..084f4e3280 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 == '-');