Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC after:      1 week
This commit is contained in:
Kris Kennaway 2001-05-20 06:21:12 +00:00
parent 8d5c7b843f
commit bfa27aef55
4 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@ BINDIR= /bin
NOSHARED?=yes
PROG= chflags
CFLAGS+=-Wall
SRCS= chflags.c
WARNS= 2
.include <bsd.prog.mk>

View File

@ -56,6 +56,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
int main __P((int, char *[]));
void usage __P((void));
int
@ -163,7 +164,7 @@ main(argc, argv)
} else {
p->fts_statp->st_flags |= set;
p->fts_statp->st_flags &= clear;
if (!chflags(p->fts_accpath, p->fts_statp->st_flags))
if (!chflags(p->fts_accpath, (u_long)p->fts_statp->st_flags))
continue;
}
warn("%s", p->fts_path);

View File

@ -5,7 +5,7 @@ BINDIR= /bin
NOSHARED?=yes
PROG= chflags
CFLAGS+=-Wall
SRCS= chflags.c
WARNS= 2
.include <bsd.prog.mk>

View File

@ -56,6 +56,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
int main __P((int, char *[]));
void usage __P((void));
int
@ -163,7 +164,7 @@ main(argc, argv)
} else {
p->fts_statp->st_flags |= set;
p->fts_statp->st_flags &= clear;
if (!chflags(p->fts_accpath, p->fts_statp->st_flags))
if (!chflags(p->fts_accpath, (u_long)p->fts_statp->st_flags))
continue;
}
warn("%s", p->fts_path);