From patchwork Tue Oct 23 11:45:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 193466 X-Patchwork-Delegate: andreas.biessmann@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id A85172C0109 for ; Tue, 23 Oct 2012 22:45:35 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D40264A309; Tue, 23 Oct 2012 13:45:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UnP81GU9XqAt; Tue, 23 Oct 2012 13:45:33 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 316604A30B; Tue, 23 Oct 2012 13:45:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 42F7B4A30B for ; Tue, 23 Oct 2012 13:45:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5eeUsqhhml1M for ; Tue, 23 Oct 2012 13:45:24 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 8D2684A309 for ; Tue, 23 Oct 2012 13:45:21 +0200 (CEST) Received: by mail-bk0-f44.google.com with SMTP id jc3so1287848bkc.3 for ; Tue, 23 Oct 2012 04:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=WLYgzeH1o/vhK2Tq2UDsdLSHpL1g9hsIrFL3FaV0OO0=; b=WLVnKLU0QrgIvVU8XBOmKk25rXrptRzz/N/SALtXy5/LIXXWhmpqWqG5kchtosF9JJ CS2vUNf7KQB5k7QFJgP45CZMMN3IL2rQnVYcCoGM2I+1ZJj4MJCSgl41uH0KPGXcJsqs BwURjt/PtA2/iGwVRUmjkBCm10KmMjMMeLffvt+7Jhpn6CL8GnRvA8O8BIxswA0rQyYh keP9YDug1EUtDLlNBQ5I05uydKRmSTlNBOc8qOjJi4sPufrBO+mJoIspGqEK/b+nXDSr 4E+e+v1vp4Rxhwh9RpvWf1FhOMYH47NHOrGqNFIkz7EU59G6NHC1BqxQCKxoiLqdefUC F8/g== Received: by 10.204.11.210 with SMTP id u18mr3662671bku.123.1350992719893; Tue, 23 Oct 2012 04:45:19 -0700 (PDT) Received: from localhost ([2a01:198:47b:1:210:75ff:fe1a:cd1e]) by mx.google.com with ESMTPS id k21sm5531702bkv.1.2012.10.23.04.45.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Oct 2012 04:45:19 -0700 (PDT) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Tue, 23 Oct 2012 13:45:11 +0200 Message-Id: <1350992711-352-1-git-send-email-andreas.devel@googlemail.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Cc: Marek Vasut Subject: [U-Boot] [PATCH] common/lcd: fix eldk 4.2 compile warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This fixes following warning only generated with eldk-4.2: ---8<--- lcd.c: In function 'bitmap_plot': lcd.c:527: warning: dereferencing type-punned pointer will break strict-aliasing rules --->8--- Signed-off-by: Andreas Bießmann Cc: Marek Vasut --- common/lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lcd.c b/common/lcd.c index b6be800..9a4435f 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -524,7 +524,7 @@ static inline ushort *configuration_get_cmap(void) void bitmap_plot(int x, int y) { #ifdef CONFIG_ATMEL_LCD - uint *cmap = (uint *)bmp_logo_palette; + uint *cmap = (void *)bmp_logo_palette; #else ushort *cmap = (ushort *)bmp_logo_palette; #endif