]> sourceware.org Git - glibc.git/commitdiff
Remove bare use of __attribute__ in include/errno.h.
authorZack Weinberg <zackw@panix.com>
Fri, 9 Jun 2017 13:37:55 +0000 (09:37 -0400)
committerZack Weinberg <zackw@panix.com>
Fri, 9 Jun 2017 13:37:55 +0000 (09:37 -0400)
This is just a style fix; we always prefer the shorthand macros over
bare uses of __attribute__, even in private headers.

* include/errno.h (__errno_location): Use __attribute_const__
instead of bare __attribute__.

ChangeLog
include/errno.h

index 6536eb802e2cdbd6c6fdcaedae5e290ff7c36b48..bb61911610951143cb7f2651699aa3af1287a520 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-09  Zack Weinberg  <zackw@panix.com>
+
+       * include/errno.h (__errno_location): Use __attribute_const__
+       instead of bare __attribute__.
+
 2017-06-09  Zack Weinberg  <zackw@panix.com>
 
        * Makeconfig (dl-tunable-list.h): Generate using a stamp file.
index 73fc32e5e098634c214d7fd255775ba0f36739fe..f140631b3131fea4a8db24f3b621ee6d1b02fcfb 100644 (file)
@@ -39,7 +39,7 @@ extern __thread int errno attribute_tls_model_ie;
 # define __set_errno(val) (errno = (val))
 
 # ifndef __ASSEMBLER__
-extern int *__errno_location (void) __THROW __attribute__ ((__const__))
+extern int *__errno_location (void) __THROW __attribute_const__
 #  if RTLD_PRIVATE_ERRNO
      attribute_hidden
 #  endif
This page took 0.151054 seconds and 5 git commands to generate.