From b4971123e9e681126cb8eaae6d5de56be84c9e98 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 9 Jun 2017 09:37:55 -0400 Subject: Remove bare use of __attribute__ in include/errno.h. 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 | 5 +++++ include/errno.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6536eb802e..bb61911610 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-06-09 Zack Weinberg + + * include/errno.h (__errno_location): Use __attribute_const__ + instead of bare __attribute__. + 2017-06-09 Zack Weinberg * Makeconfig (dl-tunable-list.h): Generate using a stamp file. diff --git a/include/errno.h b/include/errno.h index 73fc32e5e0..f140631b31 100644 --- a/include/errno.h +++ b/include/errno.h @@ -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 -- cgit 1.4.1