From: michael Date: Wed, 27 Jul 2011 05:12:30 +0000 (+0000) Subject: various compiler warnings fixed X-Git-Tag: svn1203~50 X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=7318d07f8950d3469d76537ce1d96f863085ba7c;p=lcd4linux.git various compiler warnings fixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1153 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- diff --git a/drv_D4D.c b/drv_D4D.c index 253ec2a..52d0e8f 100755 --- a/drv_D4D.c +++ b/drv_D4D.c @@ -533,12 +533,16 @@ int drv_D4D_bar_draw(WIDGET * W) WIDGET_BAR *Bar = W->data; int row, col, len, res, max, val1, val2; DIRECTION dir; - STYLE style; +#if 0 + STYLE style; /* Fixme: unused variable */ +#endif row = W->row; col = W->col; dir = Bar->direction; - style = Bar->style; +#if 0 + style = Bar->style; /* Fixme: unused variable */ +#endif len = Bar->length; res = dir & (DIR_EAST | DIR_WEST) ? XRES : YRES; diff --git a/drv_EFN.c b/drv_EFN.c index dca226c..790f3ea 100644 --- a/drv_EFN.c +++ b/drv_EFN.c @@ -83,7 +83,7 @@ static char Name[] = "EFN"; -char Host[256]; +char *Host; int Port; int DataSocket; @@ -93,7 +93,7 @@ static void drv_EFN_clear(void); /*** hardware dependant functions ***/ /****************************************/ -static int drv_EFN_open(const char *section) +static int drv_EFN_open(const char __attribute__ ((unused)) * section) { int sockfd_conf, portno_conf, n; struct sockaddr_in serv_addr; @@ -176,23 +176,14 @@ static int drv_EFN_close(void) /* dummy function that sends something to the display */ static void drv_EFN_send(const char *data, const unsigned int len) { - int n, i; + int n; - // transport command stirng to EUG 100 + // transport command string to EUG 100 n = write(DataSocket, data, len); if (n < 0) { error("%s:drv_EFN_send: Failed to write to data socket\n", Name); - // return(-1); } - /* - printf("EFN_send: "); - for(i=0;i