about summary refs log tree commit diff
path: root/posix/regex_internal.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-12-31 15:08:31 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-12-31 15:09:32 -0800
commit9b7f98b3453e7fd46c433369d3a33a5c1a02378d (patch)
treeba20f49a54901996be078cbd535708a9c116fee6 /posix/regex_internal.h
parentb50dd3bc8cbb1efe85399b03d7e6c0310c2ead84 (diff)
downloadglibc-9b7f98b3453e7fd46c433369d3a33a5c1a02378d.tar.gz
glibc-9b7f98b3453e7fd46c433369d3a33a5c1a02378d.tar.xz
glibc-9b7f98b3453e7fd46c433369d3a33a5c1a02378d.zip
regex: improve Gnulib port to AIX
From the glibc point of view, this removes duplicate macro
definitions and is obviously safe.
From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
* posix/regex_internal.h:
(__attribute__, __attribute_warn_unused_result__):
Remove; already defined elsewhere.
Diffstat (limited to 'posix/regex_internal.h')
-rw-r--r--posix/regex_internal.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
index c7df419334..1dc7a13207 100644
--- a/posix/regex_internal.h
+++ b/posix/regex_internal.h
@@ -146,10 +146,6 @@
 # define __regfree regfree
 #endif /* not _LIBC */
 
-#if !__GNUC_PREREQ (3, 1)
-# define __attribute__(arg)
-#endif
-
 #ifndef SSIZE_MAX
 # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2))
 #endif
@@ -867,14 +863,6 @@ re_string_elem_size_at (const re_string_t *pstr, Idx idx)
 }
 #endif /* RE_ENABLE_I18N */
 
-#if __GNUC_PREREQ (3,4)
-# undef __attribute_warn_unused_result__
-# define __attribute_warn_unused_result__ \
-   __attribute__ ((__warn_unused_result__))
-#else
-# define __attribute_warn_unused_result__ /* empty */
-#endif
-
 #ifndef FALLTHROUGH
 # if __GNUC__ < 7
 #  define FALLTHROUGH ((void) 0)