[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gctags warning
From: |
Hideki IWAMOTO |
Subject: |
Re: gctags warning |
Date: |
Tue, 17 Aug 2004 13:31:59 +0900 |
On Wed, 11 Aug 2004 22:02:51 +0900, Hideki IWAMOTO wrote...
> >global -f a.cc
> Warning: missing namespace block. [+3 ./a.cc](0x7f3).
> main 4 a.cc main(void)
>
Some warning messages of gctgas are displayed even when option -w is not
specified.
The attached patch corrects it.
Ok to commit?
Index: gctags/Cpp.c
===================================================================
RCS file: /cvsroot/global/global/gctags/Cpp.c,v
retrieving revision 1.39
diff -u -r1.39 Cpp.c
--- gctags/Cpp.c 13 Aug 2004 13:14:52 -0000 1.39
+++ gctags/Cpp.c 17 Aug 2004 04:12:29 -0000
@@ -160,7 +160,8 @@
if (target == REF)
PUT(token, lineno, sp);
} else {
- warning("missing namespace name. [+%d
%s].", lineno, curfile);
+ if (wflag)
+ warning("missing namespace
name. [+%d %s].", lineno, curfile);
pushbacktoken();
}
} else
@@ -179,7 +180,8 @@
if (c == '{') /* } */ {
namespacelevel++;
} else {
- warning("missing namespace block. [+%d
%s](0x%x).", lineno, curfile, c);
+ if (wflag)
+ warning("missing namespace block. [+%d
%s](0x%x).", lineno, curfile, c);
}
break;
case CPP_CLASS:
@@ -690,7 +692,8 @@
}
DBG_PRINT(piflevel, "#endif");
if (minus) {
- warning("#if block unmatched. reseted. [+%d %s]",
lineno, curfile);
+ if (wflag)
+ warning("#if block unmatched. reseted. [+%d
%s]", lineno, curfile);
} else {
if (cur->if0only)
level = cur->start;
Index: gctags/C.c
===================================================================
RCS file: /cvsroot/global/global/gctags/C.c,v
retrieving revision 1.42
diff -u -r1.42 C.c
--- gctags/C.c 13 Aug 2004 13:14:52 -0000 1.42
+++ gctags/C.c 17 Aug 2004 04:12:29 -0000
@@ -636,7 +636,8 @@
}
DBG_PRINT(piflevel, "#endif");
if (minus) {
- warning("#if block unmatched. reseted. [+%d %s]",
lineno, curfile);
+ if (wflag)
+ warning("#if block unmatched. reseted. [+%d
%s]", lineno, curfile);
} else {
if (cur->if0only)
level = cur->start;
----
Hideki IWAMOTO address@hidden