This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Joy with new GCC 3.3 warnings -- HTF to shut them up?


Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
> The syntax of __attribute__ is advantageously crafted so that it can
> be #define __attribute__(a)  /* nothing */

It's possible, though, that other compilers may have their own,
unrelated meaning for __attribute__ which is incompatible with such a
definition.  void violating the standard, you have to use something
like:
#ifdef __GNUC__
#define myattr(a) __attribute__(a)
#else
#define myattr(a)
#endif
But this is still not much work.


paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]