Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC after: 1 week
This commit is contained in:
parent
8d5c7b843f
commit
bfa27aef55
@ -5,7 +5,7 @@ BINDIR= /bin
|
||||
NOSHARED?=yes
|
||||
|
||||
PROG= chflags
|
||||
CFLAGS+=-Wall
|
||||
SRCS= chflags.c
|
||||
|
||||
WARNS= 2
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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);
|
||||
|
@ -5,7 +5,7 @@ BINDIR= /bin
|
||||
NOSHARED?=yes
|
||||
|
||||
PROG= chflags
|
||||
CFLAGS+=-Wall
|
||||
SRCS= chflags.c
|
||||
|
||||
WARNS= 2
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user