Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC after:	1 week
This commit is contained in:
Kris Kennaway 2001-05-20 05:44:03 +00:00
parent 22eb6dd432
commit 96103aa5a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76885
4 changed files with 8 additions and 5 deletions

View File

@ -8,6 +8,6 @@ SCRIPTS=rot13.sh
MAN= caesar.6
MLINKS= caesar.6 rot13.6
CFLAGS+= -Wall
WARNS= 2
.include <bsd.prog.mk>

View File

@ -80,6 +80,7 @@ double stdf[26] = {
2.62, 0.81, 1.88, 0.23, 2.07, 0.06,
};
int main __P((int, char **));
void printit __P((char *));
int
@ -97,7 +98,7 @@ main(argc, argv)
if (argc > 1)
printit(argv[1]);
if (!(inbuf = malloc(LINELENGTH))) {
if (!(inbuf = malloc((size_t)LINELENGTH))) {
(void)fprintf(stderr, "caesar: out of memory.\n");
exit(1);
}
@ -109,7 +110,7 @@ main(argc, argv)
/* zero out observation table */
bzero(obs, 26 * sizeof(int));
if ((nread = read(STDIN_FILENO, inbuf, LINELENGTH)) < 0) {
if ((nread = read(STDIN_FILENO, inbuf, (size_t)LINELENGTH)) < 0) {
(void)fprintf(stderr, "caesar: %s\n", strerror(errno));
exit(1);
}
@ -148,7 +149,7 @@ main(argc, argv)
}
if (nread < LINELENGTH)
break;
if ((nread = read(STDIN_FILENO, inbuf, LINELENGTH)) < 0) {
if ((nread = read(STDIN_FILENO, inbuf, (size_t)LINELENGTH)) < 0) {
(void)fprintf(stderr, "caesar: %s\n", strerror(errno));
exit(1);
}

View File

@ -5,6 +5,7 @@ PROG= pom
MAN= pom.6
DPADD= ${LIBM}
LDADD= -lm
CFLAGS+=-Wall
WARNS= 2
.include <bsd.prog.mk>

View File

@ -75,6 +75,7 @@ static const char rcsid[] =
static void adj360 __P((double *));
static double dtor __P((double));
int main __P((void));
static double potm __P((double));
int