Re: make sure swap arguments are the same type? (was: Re: [PATCH] crypto: rmd320 - use swap macro in rmd320_transform)
From: Joe Perches
Date: Sat Jul 21 2018 - 01:35:29 EST
On Fri, 2018-07-20 at 10:43 -0500, Gustavo A. R. Silva wrote:
> Hi Joe,
>
> I like the idea. I'll take a look at the cases you mention and see
> if I can make them work with your version of swap.
>
> BTW, I wonder if it would be more convenient to trigger a build warning
> instead of an error.
>
> What do you think?
I can't think of a way to have a #pragma (or _Pragma equivalent)
emit a warning on a condition.