|
Message-Id: <20190629231906.64452-3-samuel@sholland.org> Date: Sat, 29 Jun 2019 18:19:05 -0500 From: Samuel Holland <samuel@...lland.org> To: musl@...ts.openwall.com Cc: Samuel Holland <samuel@...lland.org> Subject: [PATCH v2 2/3] use the correct attributes for ___errno_location In the public header, __errno_location is declared with the "const" attribute, conditional on __GNUC__. Ensure that its internal alias has the same attributes. --- src/include/errno.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/errno.h b/src/include/errno.h index 54a38ff4..8ec49377 100644 --- a/src/include/errno.h +++ b/src/include/errno.h @@ -3,6 +3,9 @@ #include "../../include/errno.h" +#ifdef __GNUC__ +__attribute__((const)) +#endif hidden int *___errno_location(void); #undef errno -- 2.21.0
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.