WARNS=2 fixup.
This commit is contained in:
parent
cb08795bb0
commit
acd1ad8825
@ -2,8 +2,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= ctags
|
||||
CFLAGS+=-Wall
|
||||
CFLAGS+=-I${.CURDIR}
|
||||
SRCS= C.c ctags.c fortran.c lisp.c print.c tree.c yacc.c
|
||||
CFLAGS+=-I${.CURDIR}
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -88,7 +88,7 @@ main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
static char *outfile = "tags"; /* output file */
|
||||
static const char *outfile = "tags"; /* output file */
|
||||
int aflag; /* -a: append to tags */
|
||||
int uflag; /* -u: update tags */
|
||||
int exit_val; /* exit value */
|
||||
@ -199,7 +199,7 @@ void
|
||||
init()
|
||||
{
|
||||
int i;
|
||||
unsigned char *sp;
|
||||
const unsigned char *sp;
|
||||
|
||||
for (i = 0; i < 256; i++) {
|
||||
_wht[i] = _etk[i] = _itk[i] = _btk[i] = NO;
|
||||
|
@ -87,9 +87,9 @@ extern char lbuf[LINE_MAX];
|
||||
extern char *lbp;
|
||||
extern char searchar; /* ex search character */
|
||||
|
||||
extern int cicmp __P((char *));
|
||||
extern int cicmp __P((const char *));
|
||||
extern void getline __P((void));
|
||||
extern void pfnote __P((char *, int));
|
||||
extern void pfnote __P((const char *, int));
|
||||
extern int skip_key __P((int));
|
||||
extern void put_entries __P((NODE *));
|
||||
extern void toss_yysec __P((void));
|
||||
|
@ -140,7 +140,7 @@ PF_funcs()
|
||||
*/
|
||||
int
|
||||
cicmp(cp)
|
||||
char *cp;
|
||||
const char *cp;
|
||||
{
|
||||
int len;
|
||||
char *bp;
|
||||
|
@ -56,7 +56,7 @@ static void free_tree __P((NODE *));
|
||||
*/
|
||||
void
|
||||
pfnote(name, ln)
|
||||
char *name;
|
||||
const char *name;
|
||||
int ln;
|
||||
{
|
||||
NODE *np;
|
||||
|
Loading…
Reference in New Issue
Block a user