From: Simon Schubert Date: Wed, 9 Mar 2005 16:12:29 +0000 (+0000) Subject: WFORMAT: Use -Wnon-const-format only with gcc2 X-Git-Tag: v2.0.1~8310 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/a74a8e468895a0d32e86cc2d61ca0ca4e0461fd8?ds=sidebyside WFORMAT: Use -Wnon-const-format only with gcc2 --- diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 7502bb850e..7ce1f555ed 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -1,5 +1,5 @@ # $FreeBSD: src/share/mk/bsd.sys.mk,v 1.3.2.5 2002/07/03 16:59:14 des Exp $ -# $DragonFly: src/share/mk/bsd.sys.mk,v 1.5 2005/02/01 21:55:22 joerg Exp $ +# $DragonFly: src/share/mk/bsd.sys.mk,v 1.6 2005/03/09 16:12:29 corecode Exp $ # # This file contains common settings used for building FreeBSD # sources. @@ -42,7 +42,10 @@ WFORMAT = 1 . endif . if defined(WFORMAT) . if ${WFORMAT} > 0 -CFLAGS += -Wnon-const-format -Wno-format-extra-args +CFLAGS += -Wno-format-extra-args +. if ${CCVER} == gcc2 +CFLAGS += -Wnon-const-format +. endif . if defined(WARNS_WERROR) && !defined(NO_WERROR) CFLAGS += -Werror . endif