Module Name: src
Committed By: tron
Date: Sat Jul 30 10:07:27 UTC 2011
Modified Files:
src/lib/libedit: Makefile
Log Message:
Don't use "-Wconversion" with GCC 4.5 which will complain about all the
expressions where signed variables are converted to unsigned in an
expression e.g. "size_t foo = sizeof(something) * int_var;".
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/lib/libedit/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libedit/Makefile
diff -u src/lib/libedit/Makefile:1.46 src/lib/libedit/Makefile:1.47
--- src/lib/libedit/Makefile:1.46 Fri Jul 29 23:44:44 2011
+++ src/lib/libedit/Makefile Sat Jul 30 10:07:27 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2011/07/29 23:44:44 christos Exp $
+# $NetBSD: Makefile,v 1.47 2011/07/30 10:07:27 tron Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93
USE_SHLIBDIR= yes
@@ -8,7 +8,13 @@
LIB= edit
LIBDPLIBS+= terminfo ${.CURDIR}/../libterminfo
-COPTS+=-Wunused-parameter -Wconversion
+
+.include "bsd.own.mk"
+
+COPTS+= -Wunused-parameter
+.if !defined(HAVE_GCC) || ${HAVE_GCC} != 45
+COPTS+= -Wconversion
+.endif
OSRCS= chared.c common.c el.c emacs.c fcns.c filecomplete.c help.c \
hist.c keymacro.c map.c chartype.c \