Messages in this thread | | | Date | Wed, 6 Aug 2014 18:56:31 +0100 | From | Mark Brown <> | Subject | Re: [PATCH] spi: Fix warning about redefinition |
| |
On Wed, Aug 06, 2014 at 12:55:28PM -0400, Nick Krause wrote:
> +#ifdef WRITE > +#undef WRITE > +#endif > +#ifdef READ > +#undef READ > +#endif > #define WRITE 0 > #define READ 1
Please think about what the effect of doing this is and look at how other similar problems have been addressed - the goal isn't to shut up the warning, it's to fix the problem the compiler is trying to tell you about. [unhandled content-type:application/pgp-signature] | |