Re: [PATCH v2] Allow casting to a restricted type if !restricted_value

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

 



On Tue, Feb 21, 2017 at 12:22:18PM +0000, Edward Cree wrote:
> If the operand of a cast to a restricted type is an unrestricted value,
>  the cast should not produce a warning, since an equivalent implied cast
>  (e.g. in an initialiser) would not do so.
> 
> Also adds a test case (bitwise-cast.c) testing implicit and explicit
>  conversions of zero and nonzero integers to bitwise type.
> 
> Signed-off-by: Edward Cree <ecree@xxxxxxxxxxxxxx>
> ---
> v2: combined change and test case into one patch;
>     removed RFC tags.

Acked-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
Tested-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux