Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC after: 1 week
This commit is contained in:
parent
22eb6dd432
commit
96103aa5a5
@ -8,6 +8,6 @@ SCRIPTS=rot13.sh
|
||||
MAN= caesar.6
|
||||
MLINKS= caesar.6 rot13.6
|
||||
|
||||
CFLAGS+= -Wall
|
||||
WARNS= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ PROG= pom
|
||||
MAN= pom.6
|
||||
DPADD= ${LIBM}
|
||||
LDADD= -lm
|
||||
CFLAGS+=-Wall
|
||||
|
||||
WARNS= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user