diff --git a/bin/pax/Makefile b/bin/pax/Makefile index f142bfcc05a..de76e6cf075 100644 --- a/bin/pax/Makefile +++ b/bin/pax/Makefile @@ -33,4 +33,8 @@ SRCS= ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c ftree.c \ #MAN= pax.1 tar.1 cpio.1 #LINKS= ${BINDIR}/pax ${BINDIR}/tar ${BINDIR}/pax ${BINDIR}/cpio +.if ${MACHINE_ARCH} == "arm" +WARNS?= 3 +.endif + .include diff --git a/lib/libarchive/Makefile b/lib/libarchive/Makefile index f5c56dbf1f4..9a86d07ec5f 100644 --- a/lib/libarchive/Makefile +++ b/lib/libarchive/Makefile @@ -3,7 +3,11 @@ LIB= archive SHLIB_MAJOR= 1 +.if ${MACHINE_ARCH} == "arm" +WARNS?= 3 +.else WARNS?= 6 +.endif # I'm not yet ready for a shared version of this library, as # there are a couple of API changes still in the works. diff --git a/lib/libarchive/Makefile.freebsd b/lib/libarchive/Makefile.freebsd index f5c56dbf1f4..9a86d07ec5f 100644 --- a/lib/libarchive/Makefile.freebsd +++ b/lib/libarchive/Makefile.freebsd @@ -3,7 +3,11 @@ LIB= archive SHLIB_MAJOR= 1 +.if ${MACHINE_ARCH} == "arm" +WARNS?= 3 +.else WARNS?= 6 +.endif # I'm not yet ready for a shared version of this library, as # there are a couple of API changes still in the works. diff --git a/lib/libatm/Makefile b/lib/libatm/Makefile index 89d1ef4001e..c7b335eec4d 100644 --- a/lib/libatm/Makefile +++ b/lib/libatm/Makefile @@ -30,6 +30,11 @@ INCS= libatm.h LDADD= -lmd DPADD= ${LIBMD} + +.if ${MACHINE_ARCH} == "arm" +WARNS?= 3 +.else WARNS?= 6 +.endif .include diff --git a/sbin/atm/atm/Makefile b/sbin/atm/atm/Makefile index df5db86667c..973e5cce4cd 100644 --- a/sbin/atm/atm/Makefile +++ b/sbin/atm/atm/Makefile @@ -28,7 +28,12 @@ SRCS= atm.c atm_fore200.c atm_inet.c atm_print.c \ atm_set.c atm_show.c atm_subr.c MAN= atm.8 +.if ${MACHINE_ARCH} == "arm" +WARNS?= 3 +.else WARNS?= 6 +.endif + CFLAGS+= -I${.CURDIR}/../../../sys DPADD= ${LIBATM} diff --git a/sbin/atm/atmconfig/Makefile b/sbin/atm/atmconfig/Makefile index ddbee80a4d5..40134fc117e 100644 --- a/sbin/atm/atmconfig/Makefile +++ b/sbin/atm/atmconfig/Makefile @@ -8,7 +8,12 @@ PROG= atmconfig SRCS= main.c diag.c natm.c MAN= atmconfig.8 + +.if ${MACHINE_ARCH} == "arm" +WARNS?= 3 +.else WARNS?= 9 +.endif FILES= atmconfig.help FILESDIR= /usr/share/doc/atm diff --git a/sbin/atm/ilmid/Makefile b/sbin/atm/ilmid/Makefile index cfd0270b141..67d9bab32b9 100644 --- a/sbin/atm/ilmid/Makefile +++ b/sbin/atm/ilmid/Makefile @@ -26,7 +26,12 @@ PROG= ilmid MAN= ilmid.8 +.if ${MACHINE_ARCH} == "arm" +WARNS?= 3 +.else WARNS?= 6 +.endif + CFLAGS+= -I${.CURDIR}/../../../sys DPADD= ${LIBATM} diff --git a/sbin/camcontrol/Makefile b/sbin/camcontrol/Makefile index ebc56dd74a1..bf2ba4a864e 100644 --- a/sbin/camcontrol/Makefile +++ b/sbin/camcontrol/Makefile @@ -7,7 +7,11 @@ SRCS+= modeedit.c .else CFLAGS+= -DMINIMALISTIC .endif +.if ${MACHINE_ARCH} == "arm" +WARNS?= 3 +.else WARNS?= 6 +.endif DPADD= ${LIBCAM} ${LIBSBUF} LDADD= -lcam -lsbuf MAN= camcontrol.8