increase -Werror resilience

for bin/, commands/, libexec/, sbin/, test/, usr.bin/ and usr.sbin/.

Change-Id: I8fa12c3cd86865311cef71b7faa7cf4fa785174f
This commit is contained in:
Ben Gras
2013-08-14 12:29:26 +00:00
committed by Gerrit Code Review
parent 5c584cedf8
commit 3161c603a6
21 changed files with 63 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
PROG= mkdir
.ifdef __MINIX
WARNS=3
SYMLINKS= $(BINDIR)/$(PROG) /usr/bin/$(PROG)
.endif

View File

@@ -3,6 +3,10 @@
.include <bsd.own.mk>
.if defined(__MINIX)
WARNS=3
.endif
PROG= pax
SRCS= ar_io.c ar_subs.c buf_subs.c file_subs.c ftree.c\
gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c tables.c\

View File

@@ -456,8 +456,13 @@ ar_close(void)
/* mimic cpio's block count first */
if (frmt && strcmp(NM_CPIO, argv0) == 0) {
#ifdef __minix
(void)fprintf(listf, "%d blocks\n",
(rdcnt ? rdcnt : wrcnt) / 5120);
#else
(void)fprintf(listf, OFFT_F " blocks\n",
(rdcnt ? rdcnt : wrcnt) / 5120);
#endif
}
ar_summary(0);

View File

@@ -170,7 +170,6 @@ file_creat(ARCHD *arcn, int write_to_hardlink)
* conservatively - just write Xes into the last component.
* There is space because of the malloc().
*/
int cc;
char *last_slash;
strcpy(arcn->tmp_name, arcn->name);
if(!(last_slash = strrchr(arcn->tmp_name, '/')))