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_D4D.c | 8 ++++++-- drv_EFN.c | 30 ++++++++---------------------- drv_FW8888.c | 12 ++++++------ drv_G15.c | 5 ++--- drv_MatrixOrbitalGX.c | 2 +- drv_PICGraphic.c | 14 +++++++------- drv_picoLCDGraphic.c | 2 +- evaluator.c | 2 +- plugin_asterisk.c | 3 ++- plugin_cpuinfo.c | 4 +--- plugin_huawei.c | 9 +-------- plugin_wireless.c | 4 ++-- thread.c | 4 +--- 13 files changed, 39 insertions(+), 60 deletions(-) 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