mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: avoid new sort.c warning from upcoming GCC11
gcc version 11.0.0 20201025 (experimental) warns that src/sort.c:1655:1: warning: function might be candidate for attribute \ 'pure' if it is known to return normally [-Wsuggest-attribute=pure] * src/sort.c (limfield): Mark as pure.
This commit is contained in:
1 parent
4278e6615f
commit
cc816fb978
1 file changed
+1
-1
+1
-1
@@ -1651,7 +1651,7 @@ begfield (struct line const *line, struct keyfield const *key)
|
||||
/* Return the limit of (a pointer to the first character after) the field
|
||||
in LINE specified by KEY. */
|
||||
|
||||
static char *
|
||||
static char * _GL_ATTRIBUTE_PURE
|
||||
limfield (struct line const *line, struct keyfield const *key)
|
||||
{
|
||||
char *ptr = line->text, *lim = ptr + line->length - 1;
|
||||
|
||||
Reference in new issue
Block a user