This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
printf-like syntax
- From: David Sveningsson <david dot sveningsson at telia dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Sep 2006 18:43:13 +0200
- Subject: printf-like syntax
I have created an extended version of printf for a gaming engine. It has
the possibility to print any in-game entity. Because of portability I
didn't use the otherwise nice feature to customize printf that gcc has.
But there is one thing that I however would like to use, the printf
format attribute:
*#ifdef LINUX
#define PRINTF_SYNTAX __attribute__((format(printf,/m/,/n/)))
#else
#define PRINTF_SYNTAX
#endif
*My problem is that each time I use one of my custom specifiers GCC
warns about it. Is there some way to stop that, like adding the
specifier to that list but not to printf?
--
*//David Sveningsson [eXt]*
______________________________________
Freelance Coder | Game Developer Student
[ http://sidvind.com ] [ http://nitroxy.com ]