[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fix warning
From: |
Hideki IWAMOTO |
Subject: |
[PATCH] fix warning |
Date: |
Thu, 22 May 2003 01:45:52 +0900 |
* gtags/gtags.c: remove unused variable
* libutil/env.c: add insertion of string.h and die.h
* libutil/global.h: add insertion of char.h
* libutil/gtagsop.c: remove unused variable
* libutil/split.c: remove unused variable
Index: gtags/gtags.c
===================================================================
RCS file: /cvsroot/global/global/gtags/gtags.c,v
retrieving revision 1.68
diff -u -r1.68 gtags.c
--- gtags/gtags.c 15 May 2003 16:23:46 -0000 1.68
+++ gtags/gtags.c 21 May 2003 16:39:52 -0000
@@ -218,7 +218,6 @@
} else if (gtagsconf || gtagslabel) {
char value[MAXPATHLEN+1];
char *name = (gtagsconf) ? "GTAGSCONF" :
"GTAGSLABEL";
- char *env;
if (gtagsconf) {
if (realpath(optarg, value) == NULL)
Index: libutil/env.c
===================================================================
RCS file: /cvsroot/global/global/libutil/env.c,v
retrieving revision 1.1
diff -u -r1.1 env.c
--- libutil/env.c 15 May 2003 16:23:47 -0000 1.1
+++ libutil/env.c 21 May 2003 16:39:52 -0000
@@ -24,7 +24,13 @@
#ifdef STDC_HEADERS
#include <stdlib.h>
#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#include <strings.h>
+#endif
+#include "die.h"
#include "env.h"
/*
Index: libutil/global.h
===================================================================
RCS file: /cvsroot/global/global/libutil/global.h,v
retrieving revision 1.11
diff -u -r1.11 global.h
--- libutil/global.h 15 May 2003 16:23:47 -0000 1.11
+++ libutil/global.h 21 May 2003 16:39:52 -0000
@@ -24,6 +24,7 @@
#include "gparam.h"
#include "abs2rel.h"
+#include "char.h"
#include "conf.h"
#include "dbop.h"
#include "defined.h"
Index: libutil/gtagsop.c
===================================================================
RCS file: /cvsroot/global/global/libutil/gtagsop.c,v
retrieving revision 1.33
diff -u -r1.33 gtagsop.c
--- libutil/gtagsop.c 17 May 2003 14:08:02 -0000 1.33
+++ libutil/gtagsop.c 21 May 2003 16:39:52 -0000
@@ -77,7 +77,6 @@
*/
static int support_version = 3; /* acceptable format version */
static const char *tagslist[] = {"GPATH", "GTAGS", "GRTAGS", "GSYMS"};
-static int init;
static STRBUF *output;
/*
* dbname: return db name
Index: libutil/split.c
===================================================================
RCS file: /cvsroot/global/global/libutil/split.c,v
retrieving revision 1.9
diff -u -r1.9 split.c
--- libutil/split.c 18 May 2003 03:20:21 -0000 1.9
+++ libutil/split.c 21 May 2003 16:39:52 -0000
@@ -134,7 +134,7 @@
split_dump(list)
SPLIT *list;
{
- int i, c;
+ int i;
struct part *part;
fprintf(stderr, "npart: %d\n", list->npart);
----
Hideki IWAMOTO address@hidden
- [PATCH] fix warning,
Hideki IWAMOTO <=