mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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:
1 parent
4e6bac4ca3
commit
ec0d6ddb81
1 file changed
+2
-1
+2
-1
@@ -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 == '-');
|
||||
|
||||
Reference in new issue
Block a user