From 3d048d0ab0d9212a257df4643785a7fc4500f65a Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Mon, 10 May 2010 18:20:32 +0000 Subject: Switch to using COMPILER_VERSION instead of USE_GCC3, allows for more flexible complier picking, eg supporting gcc2, gcc3, and gcc4. based on diff by Marco, with fixes from espie@. ok espie@ general mumbling of approval of others. --- usr.bin/mandoc/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/mandoc') diff --git a/usr.bin/mandoc/Makefile b/usr.bin/mandoc/Makefile index d6e9e290f28..0a1b5dac4b0 100644 --- a/usr.bin/mandoc/Makefile +++ b/usr.bin/mandoc/Makefile @@ -1,11 +1,12 @@ -# $OpenBSD: Makefile,v 1.33 2010/04/07 23:15:05 schwarze Exp $ +# $OpenBSD: Makefile,v 1.34 2010/05/10 18:20:31 drahn Exp $ .include VERSION=1.9.23 CFLAGS+=-DVERSION=\"${VERSION}\" CFLAGS+=-W -Wall -Wstrict-prototypes -.if ${USE_GCC3:L} != "no" + +.if ${COMPILER_VERSION:L} == "gcc3" || ${COMPILER_VERSION:L} == "gcc4" CFLAGS+=-Wno-unused-parameter .endif -- cgit v1.2.3