diff options
author | marino <marino@pkgsrc.org> | 2011-12-02 20:50:31 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2011-12-02 20:50:31 +0000 |
commit | 0a77bffbcade87b12534c74747ff9f206e9c6fc0 (patch) | |
tree | d98a8f615cbc6b3306d0b7b4a76922570a7e07f1 /devel/cqual | |
parent | 37c25a4c16e55a46eecd0047034232c999854529 (diff) | |
download | pkgsrc-0a77bffbcade87b12534c74747ff9f206e9c6fc0.tar.gz |
devel/cqual: Fix for modern gcc
There are several unreferenced functions in cqual which a modern gcc
complains about using -Werror. After trying to fix a few of them, it
was easier just to stop considering warnings as errors.
Diffstat (limited to 'devel/cqual')
-rw-r--r-- | devel/cqual/Makefile | 3 | ||||
-rw-r--r-- | devel/cqual/distinfo | 3 | ||||
-rw-r--r-- | devel/cqual/patches/patch-src_expr.c | 15 |
3 files changed, 19 insertions, 2 deletions
diff --git a/devel/cqual/Makefile b/devel/cqual/Makefile index fb12eda1ac6..56fa5d8d086 100644 --- a/devel/cqual/Makefile +++ b/devel/cqual/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2010/01/29 17:53:56 joerg Exp $ +# $NetBSD: Makefile,v 1.19 2011/12/02 20:50:31 marino Exp $ # DISTNAME= cqual-0.991 @@ -19,6 +19,7 @@ USE_TOOLS+= gmake perl:run bison m4 REPLACE_PERL+= bin/* INFO_FILES= yes +BUILDLINK_TRANSFORM= rm:-Werror INSTALLATION_DIRS= share/doc/cqual share/examples/cqual .include "options.mk" diff --git a/devel/cqual/distinfo b/devel/cqual/distinfo index 40d4315d086..991be43e4f4 100644 --- a/devel/cqual/distinfo +++ b/devel/cqual/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.10 2008/07/27 20:10:42 dholland Exp $ +$NetBSD: distinfo,v 1.11 2011/12/02 20:50:32 marino Exp $ SHA1 (cqual-0.991.tar.gz) = f559af6947465ca242f19c1f499c7cb004e713e4 RMD160 (cqual-0.991.tar.gz) = e3837a11c75f750196ec4be7f991ec519c1260f6 @@ -24,3 +24,4 @@ SHA1 (patch-cb) = 568df77eefeea982d9a7faa638c6be12a54fa284 SHA1 (patch-cc) = f30adeec491d999b63e1ad5abd2b34c287608e5e SHA1 (patch-cd) = 1d9b0197b13f2414054d47e4a6ae3bf8920463bf SHA1 (patch-ce) = f9079f2c306bad8c9c0539759c4541b8bee7cda4 +SHA1 (patch-src_expr.c) = a9f2d4696c263a1ade40d0fac5ea655b3978fb20 diff --git a/devel/cqual/patches/patch-src_expr.c b/devel/cqual/patches/patch-src_expr.c new file mode 100644 index 00000000000..4e6b37a4e40 --- /dev/null +++ b/devel/cqual/patches/patch-src_expr.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_expr.c,v 1.1 2011/12/02 20:50:32 marino Exp $ + +--- src/expr.c.orig 2003-09-10 18:52:05.000000000 +0000 ++++ src/expr.c +@@ -405,8 +405,8 @@ bool check_assignment(type lhstype, type + { + /* If this type won't generate any warnings, use it. */ + if ((type_function(ttr) && type_function(ttl)) +- ? ((!type_const(ttl) | type_const(ttr)) +- & (!type_volatile(ttl) | type_volatile(ttr))) ++ ? (((!type_const(ttl)) | type_const(ttr)) ++ & ((!type_volatile(ttl)) | type_volatile(ttr))) + : ((type_const(ttl) | !type_const(ttr)) + & (type_volatile(ttl) | !type_volatile(ttr)))) + break; |