From: Marek Vasut Date: Tue, 25 Oct 2011 11:41:00 +0200 Subject: [U-Boot] [PATCH 4/4] GCC4.6: Squash warning in lcd.c In-Reply-To: <1319535660-20881-1-git-send-email-marek.vasut@gmail.com> References: <1319535660-20881-1-git-send-email-marek.vasut@gmail.com> Message-ID: <1319535660-20881-5-git-send-email-marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de lcd.c: In function 'lcd_setmem': lcd.c:446:2: warning: format '%d' expects type 'int', but argument 2 has type 'u_long' lcd.c:446:2: warning: format '%d' expects type 'int', but argument 3 has type 'u_long' Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Simon Glass Cc: Mike Frysinger --- include/lcd.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lcd.h b/include/lcd.h index 0e098d9..89cc90c 100644 --- a/include/lcd.h +++ b/include/lcd.h @@ -159,8 +159,8 @@ typedef struct vidinfo { #elif defined(CONFIG_ATMEL_LCD) typedef struct vidinfo { - u_long vl_col; /* Number of columns (i.e. 640) */ - u_long vl_row; /* Number of rows (i.e. 480) */ + ushort vl_col; /* Number of columns (i.e. 640) */ + ushort vl_row; /* Number of rows (i.e. 480) */ u_long vl_clk; /* pixel clock in ps */ /* LCD configuration register */ -- 1.7.6.3