increase -Werror resilience
for bin/, commands/, libexec/, sbin/, test/, usr.bin/ and usr.sbin/. Change-Id: I8fa12c3cd86865311cef71b7faa7cf4fa785174f
This commit is contained in:
committed by
Gerrit Code Review
parent
5c584cedf8
commit
3161c603a6
@@ -3,6 +3,7 @@
|
||||
|
||||
PROG= mkdir
|
||||
.ifdef __MINIX
|
||||
WARNS=3
|
||||
SYMLINKS= $(BINDIR)/$(PROG) /usr/bin/$(PROG)
|
||||
.endif
|
||||
|
||||
|
||||
@@ -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\
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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, '/')))
|
||||
|
||||
Reference in New Issue
Block a user