pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/rsltc Let clang ignore the mixed up return use o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/794f5dfe12e7
branches:  trunk
changeset: 650137:794f5dfe12e7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Apr 18 20:40:46 2015 +0000

description:
Let clang ignore the mixed up return use of the K&R code.

diffstat:

 devel/rsltc/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 5c85917665f6 -r 794f5dfe12e7 devel/rsltc/Makefile
--- a/devel/rsltc/Makefile      Sat Apr 18 20:21:25 2015 +0000
+++ b/devel/rsltc/Makefile      Sat Apr 18 20:40:46 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2013/02/17 19:18:00 dholland Exp $
+# $NetBSD: Makefile,v 1.16 2015/04/18 20:40:46 joerg Exp $
 #
 
 DISTNAME=              rsltcsrc
@@ -23,6 +23,11 @@
 
 MAKE_JOBS_SAFE=                no
 
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+=               -Wno-return-type
+.endif
+
 post-extract:
        ${CP} ${FILESDIR}/path.el ${WRKSRC}
 



Home | Main Index | Thread Index | Old Index