summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/file/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysutils/file/Makefile b/sysutils/file/Makefile
index 4413fbadfd6..4eed889b9a4 100644
--- a/sysutils/file/Makefile
+++ b/sysutils/file/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2009/05/21 15:58:17 sno Exp $
+# $NetBSD: Makefile,v 1.23 2009/12/30 11:00:24 abs Exp $
DISTNAME= file-5.03
CATEGORIES= sysutils
@@ -28,6 +28,10 @@ TEST_TARGET= check
.if !empty(CC_VERSION:Mgcc-[23]*)
BUILDLINK_TRANSFORM+= rename:-Wextra:-W
.endif
+# gcc<3 does not know -Wunused-parameter
+.if !empty(CC_VERSION:Mgcc-2*)
+BUILDLINK_TRANSFORM+= rm:-Wunused-parameter
+.endif
.if ${LOWER_OPSYS} == "aix"
CFLAGS+= -D_LINUX_SOURCE_COMPAT