On 16 June 2016 at 18:01, Paolo Bonzini <[email protected]> wrote:
> Does it fire even of
>
>     void f(unsigned short x)
>     {
>        printf ("%hx", x | 1);
>     }
>
> ?
>
> Because technically that's an int too (and that's why I think this
> particular warning is not a great thing)...

Yes, it does. If you want to shut it up then you can do
(unsigned short)(x | 1).

-- PMM

Reply via email to