From 7318d07f8950d3469d76537ce1d96f863085ba7c Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 27 Jul 2011 05:12:30 +0000 Subject: various compiler warnings fixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1153 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_PICGraphic.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'drv_PICGraphic.c') diff --git a/drv_PICGraphic.c b/drv_PICGraphic.c index 8586eb6..5138ece 100644 --- a/drv_PICGraphic.c +++ b/drv_PICGraphic.c @@ -238,21 +238,21 @@ static void drv_PICGraphic_blit(const int row, const int col, const int height, static int drv_PICGraphic_GPO(const int num, const int val) { - char cmd[3]; + char __attribute__ ((unused)) cmd[3]; cmd[0] = 'g'; cmd[1] = val ? 's' : 'c'; cmd[2] = num; // todo: fixme -// drv_PICGraphic_send(cmd, 3); + // drv_PICGraphic_send(cmd, 3); return 0; } static int drv_PICGraphic_GPI(const int num) { - char cmd[3]; + char __attribute__ ((unused)) cmd[3]; int ret = 0; cmd[0] = 'g'; @@ -260,8 +260,8 @@ static int drv_PICGraphic_GPI(const int num) cmd[2] = num; // todo: fixme -// drv_PICGraphic_send(cmd, 3); -// ret = drv_generic_serial_read(cmd, 1); + // drv_PICGraphic_send(cmd, 3); + // ret = drv_generic_serial_read(cmd, 1); if (ret) return -1; @@ -272,7 +272,7 @@ static int drv_PICGraphic_GPI(const int num) /* example function used in a plugin */ static int drv_PICGraphic_contrast(int contrast) { - char cmd[2]; + char __attribute__ ((unused)) cmd[2]; /* adjust limits according to the display */ if (contrast < 0) @@ -284,7 +284,7 @@ static int drv_PICGraphic_contrast(int contrast) cmd[0] = 'c'; cmd[1] = contrast; // todo: fixme -// drv_PICGraphic_send(cmd, 2); + // drv_PICGraphic_send(cmd, 2); return contrast; } -- cgit v1.2.3