[vlc-devel] [PATCH 2/3] configure: add -Werror=incompatible-pointer-types option to the compiler

Steve Lhomme robux4 at ycbcr.xyz
Wed Dec 18 09:13:42 CET 2019


On 2019-12-17 18:20, Rémi Denis-Courmont wrote:
> Le tiistaina 17. joulukuuta 2019, 16.09.28 EET Steve Lhomme a écrit :
>> This avoid using pointers of different types. It may lead to serious issues
>> in the code so rather than a warning, it should be avoided/fixed.
> 
> This will raise warnings in harmless cases of implicit conversions. Some of

It's not adding any warning. It's turning existing (unattended) warnings 
into errors.

> those might not be easily fixable - coming from external headers.

True, but it seems we have none of these on Windows, Linux (and macOS 
I'm told). I'd rather not allow new code using dirty pointer casts, even 
from external library headers.


More information about the vlc-devel mailing list