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

Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] freemint/sys/mint



Helmut Karlowski wrote:
Am 30.07.2011, 21:21 Uhr, schrieb <cvs@sparemint.org>:

/* define to indicate unused variables: */
-# ifdef __TURBOC__
# define UNUSED(x) (void) x
-# endif
-
-/* default: */
-# ifndef UNUSED
-# define UNUSED(x)
-# endif

Does that mean that gcc now goes pure-c?

The cast to void is the standard way to get rid of unused warnings. It was wrong to define it only for __TURBOC__.

--
Vincent Rivière