File: gcc7.patch

package info (click to toggle)
perm 0.4.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 976 kB
  • sloc: cpp: 13,499; makefile: 98; sh: 12
file content (25 lines) | stat: -rw-r--r-- 1,374 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 21 Aug 2017 10:03:55 +0200
Bug-Debian: https://bugs.debian.org/853609
Description: Fix gcc7 issue

--- a/MappingResult.h
+++ b/MappingResult.h
@@ -262,7 +262,7 @@ inline bool printAPairedMappingInPerM\
     int totalMis = mis1 + mis2;
 
     if(m1.caRef[0] == '\0' || m2.caRef[0] == '\0') {
-        if(m1.QScores == '\0' || m2.QScores == '\0') {
+        if(m1.QScores == (char *)'\0' || m2.QScores == (char *)'\0') {
             sprintf(AlignResult->caBufp, "%s\t%s\t%s\t%d\t%d\t%d\t%s\t%s\t%u\t%u\t%c\t%c\t%d\n",
                     m1.QNAME, m1.caRead, m2.caRead, mis1, mis2,
                     totalMis, m1.RNAME, m2.RNAME, m1.uiPOS, m2.uiPOS, m1.strand, m2.strand, mappedPairedNo);
@@ -272,7 +272,7 @@ inline bool printAPairedMappingInPerM\
                     totalMis, m1.RNAME, m2.RNAME, m1.uiPOS, m2.uiPOS, m1.strand, m2.strand, mappedPairedNo);
         }
     } else {
-        if(m1.QScores == '\0' || m2.QScores == '\0') {
+        if(m1.QScores == (char *)'\0' || m2.QScores == (char *)'\0') {
             sprintf(AlignResult->caBufp, "%s\t%s\t%s\t%d\t%d\t%d\t%s\t%s\t%u\t%u\t%c\t%c\t%d\t%s\t%s\n",
                     m1.QNAME, m1.caRead, m2.caRead, mis1, mis2,
                     totalMis, m1.RNAME, m2.RNAME, m1.uiPOS, m2.uiPOS, m1.strand, m2.strand, mappedPairedNo, m1.caRef, m2.caRef);