]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix numfmt build error on compilers without __attribute
authorJoachim Schmitz <jojo@schmitz-digital.de>
Tue, 19 Feb 2013 11:09:44 +0000 (11:09 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 20 Feb 2013 04:04:25 +0000 (04:04 +0000)
* src/numfmt.c (): Use the more standard _GL_ATTRIBUTE_PURE
which is elided where required.
Reported in http://bugs.gnu.org/10305

src/numfmt.c

index 8c21c2b3afe2e0097332ec4dae23e65c7a73723f..f689a9742fe80b205efc6989232ac296f508cf50 100644 (file)
@@ -1194,8 +1194,7 @@ process_suffixed_number (char *text, long double *result, size_t *precision)
 /* Skip the requested number of fields in the input string.
    Returns a pointer to the *delimiter* of the requested field,
    or a pointer to NUL (if reached the end of the string).  */
-static inline char *
-__attribute ((pure))
+static inline char * _GL_ATTRIBUTE_PURE
 skip_fields (char *buf, int fields)
 {
   char *ptr = buf;