seqan-fix-setBegin-call.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Description: Proper type-casting in using seqan::_setBegin().
  2. Required by newer versions of GCC.
  3. Forwarded: no
  4. Author: Ognyan Kulev <ogi@debian.org>
  5. Last-Update: 2013-04-18
  6. --- a/pat.h
  7. +++ b/pat.h
  8. @@ -82,20 +82,20 @@
  9. ~ReadBuf() {
  10. clearAll(); reset();
  11. // Prevent seqan from trying to free buffers
  12. - _setBegin(patFw, NULL);
  13. - _setBegin(patRc, NULL);
  14. - _setBegin(qual, NULL);
  15. - _setBegin(patFwRev, NULL);
  16. - _setBegin(patRcRev, NULL);
  17. - _setBegin(qualRev, NULL);
  18. - _setBegin(name, NULL);
  19. + _setBegin(patFw, (Dna5*)NULL);
  20. + _setBegin(patRc, (Dna5*)NULL);
  21. + _setBegin(qual, (char*)NULL);
  22. + _setBegin(patFwRev, (Dna5*)NULL);
  23. + _setBegin(patRcRev, (Dna5*)NULL);
  24. + _setBegin(qualRev, (char*)NULL);
  25. + _setBegin(name, (char*)NULL);
  26. for(int j = 0; j < 3; j++) {
  27. - _setBegin(altPatFw[j], NULL);
  28. - _setBegin(altPatFwRev[j], NULL);
  29. - _setBegin(altPatRc[j], NULL);
  30. - _setBegin(altPatRcRev[j], NULL);
  31. - _setBegin(altQual[j], NULL);
  32. - _setBegin(altQualRev[j], NULL);
  33. + _setBegin(altPatFw[j], (Dna5*)NULL);
  34. + _setBegin(altPatFwRev[j], (Dna5*)NULL);
  35. + _setBegin(altPatRc[j], (Dna5*)NULL);
  36. + _setBegin(altPatRcRev[j], (Dna5*)NULL);
  37. + _setBegin(altQual[j], (char*)NULL);
  38. + _setBegin(altQualRev[j], (char*)NULL);
  39. }
  40. }