Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Only use -Wconversion if GCC is actually the act...



details:   https://anonhg.NetBSD.org/src/rev/5a532b786ec8
branches:  trunk
changeset: 767895:5a532b786ec8
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Aug 02 17:22:02 2011 +0000

description:
Only use -Wconversion if GCC is actually the active compiler.

diffstat:

 lib/libedit/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 3a1c28aec87d -r 5a532b786ec8 lib/libedit/Makefile
--- a/lib/libedit/Makefile      Tue Aug 02 17:12:38 2011 +0000
+++ b/lib/libedit/Makefile      Tue Aug 02 17:22:02 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.47 2011/07/30 10:07:27 tron Exp $
+#      $NetBSD: Makefile,v 1.48 2011/08/02 17:22:02 joerg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/4/93
 
 USE_SHLIBDIR=  yes
@@ -12,8 +12,8 @@
 .include "bsd.own.mk"
 
 COPTS+=        -Wunused-parameter
-.if !defined(HAVE_GCC) || ${HAVE_GCC} != 45
-COPTS+=        -Wconversion
+.if defined(HAVE_GCC) && ${HAVE_GCC} != 45
+CWARNFLAGS.gcc+=       -Wconversion
 .endif
 
 OSRCS= chared.c common.c el.c emacs.c fcns.c filecomplete.c help.c \



Home | Main Index | Thread Index | Old Index