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