summaryrefslogtreecommitdiff
path: root/academic/bowtie/patches/seqan-fix-setBegin-call.patch
diff options
context:
space:
mode:
authorPetar Petrov <petar.petrov@student.oulu.fi>2013-12-14 07:31:21 +0700
committerErik Hanson <erik@slackbuilds.org>2013-12-14 10:53:05 -0600
commit70013017755f78c0636a880522351dc5b588277e (patch)
treeeac41e23ff997e41eb9b813e8fed747f6d8ac8ea /academic/bowtie/patches/seqan-fix-setBegin-call.patch
parentca3a131931b1c0a9fca77630daddd3349048a569 (diff)
downloadslackbuilds-70013017755f78c0636a880522351dc5b588277e.tar.gz
academic/bowtie: Updated for version 1.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/bowtie/patches/seqan-fix-setBegin-call.patch')
-rw-r--r--academic/bowtie/patches/seqan-fix-setBegin-call.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/academic/bowtie/patches/seqan-fix-setBegin-call.patch b/academic/bowtie/patches/seqan-fix-setBegin-call.patch
new file mode 100644
index 0000000000..56c8763117
--- /dev/null
+++ b/academic/bowtie/patches/seqan-fix-setBegin-call.patch
@@ -0,0 +1,42 @@
+Description: Proper type-casting in using seqan::_setBegin().
+ Required by newer versions of GCC.
+Forwarded: no
+Author: Ognyan Kulev <ogi@debian.org>
+Last-Update: 2013-04-18
+
+--- a/pat.h
++++ b/pat.h
+@@ -82,20 +82,20 @@
+ ~ReadBuf() {
+ clearAll(); reset();
+ // Prevent seqan from trying to free buffers
+- _setBegin(patFw, NULL);
+- _setBegin(patRc, NULL);
+- _setBegin(qual, NULL);
+- _setBegin(patFwRev, NULL);
+- _setBegin(patRcRev, NULL);
+- _setBegin(qualRev, NULL);
+- _setBegin(name, NULL);
++ _setBegin(patFw, (Dna5*)NULL);
++ _setBegin(patRc, (Dna5*)NULL);
++ _setBegin(qual, (char*)NULL);
++ _setBegin(patFwRev, (Dna5*)NULL);
++ _setBegin(patRcRev, (Dna5*)NULL);
++ _setBegin(qualRev, (char*)NULL);
++ _setBegin(name, (char*)NULL);
+ for(int j = 0; j < 3; j++) {
+- _setBegin(altPatFw[j], NULL);
+- _setBegin(altPatFwRev[j], NULL);
+- _setBegin(altPatRc[j], NULL);
+- _setBegin(altPatRcRev[j], NULL);
+- _setBegin(altQual[j], NULL);
+- _setBegin(altQualRev[j], NULL);
++ _setBegin(altPatFw[j], (Dna5*)NULL);
++ _setBegin(altPatFwRev[j], (Dna5*)NULL);
++ _setBegin(altPatRc[j], (Dna5*)NULL);
++ _setBegin(altPatRcRev[j], (Dna5*)NULL);
++ _setBegin(altQual[j], (char*)NULL);
++ _setBegin(altQualRev[j], (char*)NULL);
+ }
+ }
+