Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/dhcp fix previous / -Wno-enum-compare is only valid...



details:   https://anonhg.NetBSD.org/src/rev/d8a1e1036c08
branches:  trunk
changeset: 766662:d8a1e1036c08
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 29 06:34:31 2011 +0000

description:
fix previous / -Wno-enum-compare is only valid for GCC 4.5.

diffstat:

 usr.sbin/dhcp/common/Makefile |  4 ++--
 usr.sbin/dhcp/server/Makefile |  4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 16af1f94e1bf -r d8a1e1036c08 usr.sbin/dhcp/common/Makefile
--- a/usr.sbin/dhcp/common/Makefile     Wed Jun 29 06:32:32 2011 +0000
+++ b/usr.sbin/dhcp/common/Makefile     Wed Jun 29 06:34:31 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2011/06/29 06:32:32 mrg Exp $
+# $NetBSD: Makefile,v 1.26 2011/06/29 06:34:31 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -13,6 +13,6 @@
 
 .include <bsd.lib.mk>
 
-.if defined(HAVE_GCC) && HAVE_GCC >= 45
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
 CPPFLAGS.dns.c+=       -Wno-enum-compare
 .endif
diff -r 16af1f94e1bf -r d8a1e1036c08 usr.sbin/dhcp/server/Makefile
--- a/usr.sbin/dhcp/server/Makefile     Wed Jun 29 06:32:32 2011 +0000
+++ b/usr.sbin/dhcp/server/Makefile     Wed Jun 29 06:34:31 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2011/06/29 02:40:11 mrg Exp $
+# $NetBSD: Makefile,v 1.16 2011/06/29 06:34:31 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -21,4 +21,6 @@
 
 .include <bsd.prog.mk>
 
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
 CPPFLAGS.ddns.c+=      -Wno-enum-compare
+.endif



Home | Main Index | Thread Index | Old Index