Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC after: 1 week
This commit is contained in:
parent
70d80ba289
commit
370c50d300
@ -4,4 +4,6 @@
|
||||
PROG= sync
|
||||
MAN= sync.8
|
||||
|
||||
WARNS= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -47,6 +47,8 @@ static const char rcsid[] =
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
int main __P((void));
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
|
@ -8,6 +8,8 @@ CFLAGS+=-traditional-cpp
|
||||
HIDEGAME=hidegame
|
||||
CLEANFILES=data.c setup setup.o
|
||||
|
||||
WARNS= 2
|
||||
|
||||
build-tools: setup
|
||||
|
||||
data.c: glorkz setup
|
||||
|
@ -533,7 +533,7 @@ int skip; /* assumes object 1 doesn't have prop 1, obj 2 no prop 2 &c*/
|
||||
msg = &ptext[m];
|
||||
if ((tbuf=(char *) malloc(msg->txtlen + 1)) == 0)
|
||||
errx(1, "Out of memory!");
|
||||
memcpy(tbuf, msg->seekadr, (u_int)msg->txtlen + 1); /* Room to null */
|
||||
memcpy(tbuf, msg->seekadr, (size_t)msg->txtlen + 1); /* Room to null */
|
||||
s = tbuf;
|
||||
|
||||
nonfirst=0;
|
||||
|
@ -48,6 +48,7 @@ static const char rcsid[] =
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <err.h>
|
||||
#include "hdr.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user