From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 11 Aug 2014 17:54:11 +0200 Subject: [U-Boot] [[PATCH v2]] video: ipu_disp: squash clang warning In-Reply-To: <1403025627-2850-1-git-send-email-jeroen@myspectrum.nl> References: <1402947663-20632-1-git-send-email-jeroen@myspectrum.nl> <1403025627-2850-1-git-send-email-jeroen@myspectrum.nl> Message-ID: <20140811175411.0abbef90@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Tue, 17 Jun 2014 19:20:27 +0200 Jeroen Hofstee 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 > Cc: Stefano Babic > Signed-off-by: Jeroen Hofstee > > --- > 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