
1 Jul
2010
1 Jul
'10
9:30 a.m.
Dear Mike Frysinger,
In message 201006301904.42571.vapier@gentoo.org you wrote:
+static void dummy(void) __attribute__((unused)); static void dummy(void) { }
put the attribute before the "static" and you shouldnt need the duplicate prototype
Ah, that's the trick that does it.
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Use C++ to confuse your enemies; use C to produce stable code.