diff options
author | archie <archie@FreeBSD.org> | 1998-12-06 22:58:23 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1998-12-06 22:58:23 +0000 |
commit | 167c036e91fb24a62d627d16a2f3afa6d875c9e2 (patch) | |
tree | e40a696092a51458b052ff258b3700d51fc2ca09 /usr.bin/ctags | |
parent | 3f56407712318be6faa0b98ad8db4b5a83ef4c93 (diff) | |
download | FreeBSD-src-167c036e91fb24a62d627d16a2f3afa6d875c9e2.zip FreeBSD-src-167c036e91fb24a62d627d16a2f3afa6d875c9e2.tar.gz |
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
Diffstat (limited to 'usr.bin/ctags')
-rw-r--r-- | usr.bin/ctags/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/ctags/ctags.c | 4 | ||||
-rw-r--r-- | usr.bin/ctags/fortran.c | 2 | ||||
-rw-r--r-- | usr.bin/ctags/lisp.c | 2 | ||||
-rw-r--r-- | usr.bin/ctags/print.c | 2 | ||||
-rw-r--r-- | usr.bin/ctags/tree.c | 2 | ||||
-rw-r--r-- | usr.bin/ctags/yacc.c | 2 |
7 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/ctags/Makefile b/usr.bin/ctags/Makefile index 7a8ebce..db595aa 100644 --- a/usr.bin/ctags/Makefile +++ b/usr.bin/ctags/Makefile @@ -1,6 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= ctags +CFLAGS+=-Wall CFLAGS+=-I${.CURDIR} SRCS= C.c ctags.c fortran.c lisp.c print.c tree.c yacc.c diff --git a/usr.bin/ctags/ctags.c b/usr.bin/ctags/ctags.c index 421d819..dc44ba6 100644 --- a/usr.bin/ctags/ctags.c +++ b/usr.bin/ctags/ctags.c @@ -32,13 +32,13 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1987, 1993, 1994, 1995\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)ctags.c 8.4 (Berkeley) 2/7/95"; +static const char sccsid[] = "@(#)ctags.c 8.4 (Berkeley) 2/7/95"; #endif /* not lint */ #include <err.h> diff --git a/usr.bin/ctags/fortran.c b/usr.bin/ctags/fortran.c index 0706b49..d4b2723 100644 --- a/usr.bin/ctags/fortran.c +++ b/usr.bin/ctags/fortran.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)fortran.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)fortran.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include <ctype.h> diff --git a/usr.bin/ctags/lisp.c b/usr.bin/ctags/lisp.c index 5f99984..f86e218 100644 --- a/usr.bin/ctags/lisp.c +++ b/usr.bin/ctags/lisp.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)lisp.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)lisp.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include <ctype.h> diff --git a/usr.bin/ctags/print.c b/usr.bin/ctags/print.c index bebdeb1..65d6737 100644 --- a/usr.bin/ctags/print.c +++ b/usr.bin/ctags/print.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include <limits.h> diff --git a/usr.bin/ctags/tree.c b/usr.bin/ctags/tree.c index 61decd2..8e1ec22 100644 --- a/usr.bin/ctags/tree.c +++ b/usr.bin/ctags/tree.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)tree.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)tree.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include <err.h> diff --git a/usr.bin/ctags/yacc.c b/usr.bin/ctags/yacc.c index 1ed4c7d..7a27a6e 100644 --- a/usr.bin/ctags/yacc.c +++ b/usr.bin/ctags/yacc.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)yacc.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)yacc.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include <ctype.h> |