From d805ea7e2843ca854be19c17ab327d5366147b92 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 3 May 2020 13:58:06 -0700 Subject: [PATCH] attribute: minor fixups Suggested by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2020-05/msg00049.html --- lib/attribute.h | 5 +++-- lib/mbrtoc32.c | 2 +- lib/nstrftime.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/attribute.h b/lib/attribute.h index ffd9bdfa28..4861c17364 100644 --- a/lib/attribute.h +++ b/lib/attribute.h @@ -30,8 +30,9 @@ #define MAYBE_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED #define NODISCARD _GL_ATTRIBUTE_NODISCARD -/* Attributes from GCC have macro names beginning with 'ATTRIBUTE_' to - avoid name clashes. */ +/* Selected GCC attributes; see: + https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html + These names begin with 'ATTRIBUTE_' to avoid name clashes. */ #define ATTRIBUTE_ALLOC_SIZE(args) _GL_ATTRIBUTE_ALLOC_SIZE(args) #define ATTRIBUTE_ALWAYS_INLINE _GL_ATTRIBUTE_ALWAYS_INLINE #define ATTRIBUTE_ARTIFICIAL _GL_ATTRIBUTE_ARTIFICIAL diff --git a/lib/mbrtoc32.c b/lib/mbrtoc32.c index dc35ba2d42..04f3dbd2ac 100644 --- a/lib/mbrtoc32.c +++ b/lib/mbrtoc32.c @@ -21,7 +21,7 @@ /* Specification. */ #include -#include +#include "attribute.h" #include #include diff --git a/lib/nstrftime.c b/lib/nstrftime.c index 5326de60f7..fa7ac538da 100644 --- a/lib/nstrftime.c +++ b/lib/nstrftime.c @@ -68,7 +68,7 @@ extern char *tzname[]; #include #include -#include +#include "attribute.h" #include #ifdef COMPILE_WIDE -- 2.39.5