bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix -Wall warning


From: Hideki IWAMOTO
Subject: [PATCH] fix -Wall warning
Date: Sun, 23 Feb 2003 02:40:34 +0900

Cpp.c: In function `inittable':
Cpp.c:739: warning: unused variable `i'
java.c: In function `inittable':
java.c:238: warning: unused variable `i'
gtags.c: In function `put_converting':
gtags.c:1144: warning: unused variable `q'
gtags.c:1145: warning: unused variable `i'
gtagsop.c: In function `gtags_delete':
gtagsop.c:592: warning: unused variable `fid'
gtagsop.c: In function `unpack_pathindex':
gtagsop.c:761: warning: unused variable `i'
gtagsop.c:762: warning: `fid' might be used uninitialized in this function




Index: gctags/Cpp.c
===================================================================
RCS file: /cvsroot/global/global/gctags/Cpp.c,v
retrieving revision 1.17
diff -u -r1.17 Cpp.c
--- gctags/Cpp.c        17 Feb 2003 01:20:41 -0000      1.17
+++ gctags/Cpp.c        22 Feb 2003 17:33:02 -0000
@@ -736,7 +736,6 @@
 static void
 inittable()
 {
-       int i;
        qsort(words, sizeof(words)/sizeof(struct words), sizeof(struct words), 
cmp);
 }
 static int
Index: gctags/java.c
===================================================================
RCS file: /cvsroot/global/global/gctags/java.c,v
retrieving revision 1.5
diff -u -r1.5 java.c
--- gctags/java.c       28 Jul 2002 12:37:58 -0000      1.5
+++ gctags/java.c       22 Feb 2003 17:33:02 -0000
@@ -235,7 +235,6 @@
 static void
 inittable()
 {
-       int i;
        qsort(words, sizeof(words)/sizeof(struct words), sizeof(struct words), 
cmp);
 }
 static int
Index: gtags/gtags.c
===================================================================
RCS file: /cvsroot/global/global/gtags/gtags.c,v
retrieving revision 1.59
diff -u -r1.59 gtags.c
--- gtags/gtags.c       16 Feb 2003 06:53:34 -0000      1.59
+++ gtags/gtags.c       22 Feb 2003 17:33:03 -0000
@@ -1141,8 +1141,7 @@
 int    absolute;
 {
        char buf[MAXPATHLEN+1];
-       char *p, *q;
-       int i = 0;
+       char *p;
 
        /*
         * print until path name.
Index: libutil/gtagsop.c
===================================================================
RCS file: /cvsroot/global/global/libutil/gtagsop.c,v
retrieving revision 1.29
diff -u -r1.29 gtagsop.c
--- libutil/gtagsop.c   21 Jan 2003 04:08:34 -0000      1.29
+++ libutil/gtagsop.c   22 Feb 2003 17:33:03 -0000
@@ -589,7 +589,7 @@
 GTOP   *gtop;
 char   *path;
 {
-       char *p, *fid;
+       char *p;
        /*
         * In compact format, a path is saved as a file number.
         */
@@ -758,8 +758,8 @@
 char *line;
 {
        SPLIT ptable;
-       int n, i;
-       char *path, *fid;
+       int n;
+       char *path;
 
        n = split(line, 4, &ptable);
        if (n < 4) {
@@ -771,7 +771,7 @@
         */
        path = gpath_fid2path(ptable.part[2].start);
        if (path == NULL)
-               die("GPATH is corrupted.(fid '%s' not found)", fid);
+               die("GPATH is corrupted.(fid '%s' not found)", 
ptable.part[2].start);
        recover(&ptable);
        /*
         * copy line with converting.

----
岩本 秀樹  address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]