[U-Boot] [[PATCH v2]] video: ipu_disp: squash clang warning

Anatolij Gustschin agust at denx.de
Mon Aug 11 17:54:11 CEST 2014


Hi,

On Tue, 17 Jun 2014 19:20:27 +0200
Jeroen Hofstee <jeroen at myspectrum.nl> wrote:

> Since rgb2ycbcr_coeff and friends are declared const, but assigned
> to a void pointer, clang will warn that the const is implicity casted
> away. If the pointer is changed to void const * gcc will warn when it
> is implicitly casted to a const int array. Just add a correctly
> typed pointer instead to prevent these casts and hence the warnings.
> 
> Cc: Troy Kisky <troy.kisky at boundarydevices.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>
> 
> ---
> changes since v1:
>   Do actually fix the warning. As pointed out by Troy Kisky
>   the patch was doing something different then the commit
>   message said.
> 
>   ... and prefix subject with v2
> ---
>  drivers/video/ipu_disp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-video/master. Thanks!

Anatolij


More information about the U-Boot mailing list