Re: [PATCH 1/6] Add memory pool library
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Jun 14, 2010, 14:25 UTC
- Message-ID
- <AANLkTimtya1Ph5YjlFVAVpE2p4XOHvuaFAmsS4C0J5LH@mail.gmail.com>
- In-Reply-To
- <20100612064250.GB2549@burratino>
Hi Jonathan,
Jonathan Nieder wrote:
Show 5 quoted lines
> #ifdef __GNUC__ > #define MAYBE_UNUSED __attribute__((__unused__)) > #else > #define MAYBE_UNUSED > #endif
You'd suggested this earlier, but I was looking more for something that we could use to mark some specific functions as unused instead of marking everything as unused in the generation macro. Anyway, I have a patch ready, and svn-fe compiles fine with -Wall -Werror.
> Could that work here? > > The “unused” attribute was added in gcc 2.7.
Junio? Is this a good solution, or should we think of something else? What about other compilers?
-- Ram