aboutsummaryrefslogtreecommitdiffstats
path: root/drv_PICGraphic.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-07-27 05:12:30 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-07-27 05:12:30 +0000
commit7318d07f8950d3469d76537ce1d96f863085ba7c (patch)
tree361d3b09b28e6847784781c70323af5dab2745c3 /drv_PICGraphic.c
parent616665a32d0e4eb368c6346168e91cfeda42583f (diff)
downloadlcd4linux-7318d07f8950d3469d76537ce1d96f863085ba7c.tar.gz
various compiler warnings fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1153 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_PICGraphic.c')
-rw-r--r--drv_PICGraphic.c14
1 files changed, 7 insertions, 7 deletions
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;
}