Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Don't use "-Wconversion" with GCC 4.5 which will...



details:   https://anonhg.NetBSD.org/src/rev/ef17ff9591b9
branches:  trunk
changeset: 767779:ef17ff9591b9
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Jul 30 10:07:27 2011 +0000

description:
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;".

diffstat:

 lib/libedit/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 2c1fb20cd58f -r ef17ff9591b9 lib/libedit/Makefile
--- a/lib/libedit/Makefile      Sat Jul 30 09:39:20 2011 +0000
+++ b/lib/libedit/Makefile      Sat Jul 30 10:07:27 2011 +0000
@@ -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 \



Home | Main Index | Thread Index | Old Index