[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: convert_sym.c



  User: danmc   
  Date: 05/09/27 18:46:55

  Modified:    .        convert_sym.c gmk_sym.c grenum.c olib.l
  Log:
  remove various compiler warnings
  
  
  Revision  Changes    Path
  1.12      +7 -3      eda/geda/devel/utils/src/convert_sym.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: convert_sym.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/utils/src/convert_sym.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- convert_sym.c	20 Aug 2005 01:46:25 -0000	1.11
  +++ convert_sym.c	27 Sep 2005 22:46:55 -0000	1.12
  @@ -33,7 +33,7 @@
    *   along with this program; if not, write to the Free Software
    *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
    *
  - * 	$Id: convert_sym.c,v 1.11 2005/08/20 01:46:25 ahvezda Exp $	 
  + * 	$Id: convert_sym.c,v 1.12 2005/09/27 22:46:55 danmc Exp $	 
    */
   
   #include <stdio.h>
  @@ -52,7 +52,7 @@
   
   #if 0 /* removed by AVH just to make a -Wall -Werror happy */
   #ifndef lint
  -static char vcid[] = "$Id: convert_sym.c,v 1.11 2005/08/20 01:46:25 ahvezda Exp $";
  +static char vcid[] = "$Id: convert_sym.c,v 1.12 2005/09/27 22:46:55 danmc Exp $";
   #endif /* lint */
   #endif
   
  @@ -535,9 +535,11 @@
   void
   do_bounding_box(FILE *fp)
   {
  +#if 0
     unsigned int color;
     struct LineStyle linestyle;
     struct FillStyle fillstyle;
  +#endif
   
     /* just fetch the values and store */
     if(fscanf(fp,"%d %d %d %d\n", &minx, &miny, &maxx, &maxy) != 4)
  @@ -1611,7 +1613,9 @@
   	    int angle, char *text, unsigned int origin)
   {
     unsigned int text_size;
  +#if 0
     unsigned int textlen;
  +#endif
     unsigned int numlines;
   
     /* fudge the text size, in viewdraw it is actually the height
  
  
  
  1.21      +3 -3      eda/geda/devel/utils/src/gmk_sym.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gmk_sym.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/utils/src/gmk_sym.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -b -r1.20 -r1.21
  --- gmk_sym.c	7 Feb 2005 23:57:14 -0000	1.20
  +++ gmk_sym.c	27 Sep 2005 22:46:55 -0000	1.21
  @@ -627,7 +627,7 @@
     q = pTemp;
     while ((*p == ' ') || (*p == '\t'))
       p++;
  -  while (isprint(*p) && (*p != ','))    /* copy string to pTemp */
  +  while (isprint((int) *p) && (*p != ','))    /* copy string to pTemp */
       *q++ = *p++;
     *q = 0;                       /* terminate the string     */
     strtrail(pTemp);              /* drop any trailing spaces */
  @@ -648,7 +648,7 @@
        *p = 0;
    if ((p = strchr(wrk,'\r')) != NULL)
        *p = 0;
  -  while (isspace(*(wrk + strlen(wrk) - 1)))     /* Clear any trailing spaces */
  +  while (isspace((int) *(wrk + strlen(wrk) - 1)))     /* Clear any trailing spaces */
       *(wrk + strlen(wrk) - 1) = 0;
   }
   
  @@ -664,7 +664,7 @@
        *p = 0;
    if ((p = strchr(pBuf,'\r')) != NULL)
        *p = 0;
  -  while (isspace(*(pBuf + strlen(pBuf) - 1)))     /* Clear any trailing spaces */
  +  while (isspace((int) *(pBuf + strlen(pBuf) - 1)))     /* Clear any trailing spaces */
       *(pBuf + strlen(pBuf) - 1) = 0;
     if (*pBuf == ';')
        return -1;
  
  
  
  1.4       +3 -2      eda/geda/devel/utils/src/grenum.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: grenum.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/utils/src/grenum.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- grenum.c	17 Aug 2005 17:40:07 -0000	1.3
  +++ grenum.c	27 Sep 2005 22:46:55 -0000	1.4
  @@ -1,4 +1,4 @@
  -/* $Id: grenum.c,v 1.3 2005/08/17 17:40:07 danmc Exp $ */
  +/* $Id: grenum.c,v 1.4 2005/09/27 22:46:55 danmc Exp $ */
   /*	This is grenum, an advanced refdes renumber utility for gEDA's gschem.
    *
    *	Copyright (C) 2005  Levente Kovacs
  @@ -50,9 +50,10 @@
   	FILE *infile,*outfile;
   	char buff[255], infilename[100], outfilename[100], *cp;
   	unsigned char flags;
  -	int c,opt_idx,pages;
  +	int c, pages;
   
   #ifdef HAVE_GETOPT_LONG
  +	int opt_idx;
   	const struct option long_opts[]={
   		{"version",  no_argument, NULL, 'v'},
   		{"help",     no_argument, NULL, 'h'},
  
  
  
  1.3       +2 -2      eda/geda/devel/utils/src/olib.l
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: olib.l
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/utils/src/olib.l,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- olib.l	26 Feb 2005 01:16:20 -0000	1.2
  +++ olib.l	27 Sep 2005 22:46:55 -0000	1.3
  @@ -1,5 +1,5 @@
   %{
  -/*  $Id: olib.l,v 1.2 2005/02/26 01:16:20 danmc Exp $
  +/*  $Id: olib.l,v 1.3 2005/09/27 22:46:55 danmc Exp $
   
       olib.lex - Orcad to gEDA lib converter
       Copyright (C) 2002 Mario Pascucci <m.pas@xxxxxxxxx>
  @@ -158,7 +158,7 @@
     p = buff;
     while (*str)
     {
  -    if (isalnum(*str) || strchr("-_. ",*str))
  +    if (isalnum((int) *str) || strchr("-_. ",*str))
       {
         if (*str == ' ')
   	*p = '_';