Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC After:	1 week
This commit is contained in:
Kris Kennaway 2001-05-20 05:13:21 +00:00
parent 692ad02bcd
commit 0a26b6bbc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76881
5 changed files with 7 additions and 2 deletions

View file

@ -3,4 +3,6 @@
PROG= setfacl
SRCS= file.c mask.c merge.c remove.c setfacl.c util.c
WARNS= 2
.include <bsd.prog.mk>

View file

@ -59,7 +59,7 @@ get_acl_from_file(const char *filename)
err(EX_OSERR, "fopen() %s failed", filename);
}
fread(buf, sizeof(buf), 1, file);
fread(buf, sizeof(buf), (size_t)1, file);
if (ferror(file)) {
fclose(file);
err(EX_USAGE, "error reading from %s", filename);

View file

@ -173,7 +173,7 @@ main(int argc, char *argv[])
err(EX_USAGE, "cannot have more than one stdin");
have_stdin = 1;
bzero(&filename, sizeof(filename));
while (fgets(filename, sizeof(filename), stdin)) {
while (fgets(filename, (int)sizeof(filename), stdin)) {
/* remove the \n */
filename[strlen(filename) - 1] = '\0';
add_filename(filename);

View file

@ -3,4 +3,6 @@
PROG= sleep
WARNS= 2
.include <bsd.prog.mk>

View file

@ -52,6 +52,7 @@ static const char rcsid[] =
#include <time.h>
#include <unistd.h>
int main __P((int, char *[]));
void usage __P((void));
int