bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The attribute module


From: Bruno Haible
Subject: Re: The attribute module
Date: Sat, 09 May 2020 13:24:20 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )

Hi Akim,

> > In file included from ../lib/bitsetv.c:21:
> > In file included from ../lib/bitsetv.h:24:
> > In file included from ../lib/bitset.h:31:
> > In file included from ../lib/bitset/base.h:28:
> > ../lib/xalloc.h:43:10: warning: '_GL_ATTRIBUTE_ALLOC_SIZE' macro redefined 
> > [-Wmacro-redefined]
> > # define _GL_ATTRIBUTE_ALLOC_SIZE(args)
> >          ^
> > ./lib/config.h:1657:10: note: previous definition is here
> > # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ 
> > args))
> >          ^

These two patches should fix these warnings.


2020-05-09  Bruno Haible  <address@hidden>

        Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
        * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
        * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
        * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.

2020-05-09  Bruno Haible  <address@hidden>

        Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
        Reported by Akim Demaille in
        <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
        * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
        * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
        * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.

Attachment: 0001-Remove-redundant-definitions-of-_GL_ATTRIBUTE_ALLOC_.patch
Description: Text Data

Attachment: 0002-Remove-redundant-definitions-of-_GL_ATTRIBUTE_FORMAT.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]