Source: disulfinder
Severity: normal
Tags: patch
Usertags: clang-ftbfs
Hello Dear Maintainer,
This package faild to build with clang. Please see attached patch for source
code.
Best regards,
Alexander.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.13-1-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- disulfinder-1.2.11/disulfind/src/Input/buildXfolds.cpp 2011-07-19 09:30:43.000000000 -0400
+++ disulfinder-1.2.11-my/disulfind/src/Input/buildXfolds.cpp 2014-03-13 15:32:21.877406811 -0400
@@ -13,7 +13,7 @@
std::ifstream in(example_file);
assert(in.good());
std::list<std::string> examples;
- std::vector<std::string> fold_examples[folds_number];
+ std::vector<std::string> *fold_examples = new std::vector<std::string>[folds_number];
std::list<std::string>::iterator iter;
std::string buf;
@@ -22,6 +22,7 @@
if(examples.size() < folds_number){
cerr << "ERROR: only " << examples.size() << " examples for " << folds_number << " folds" << endl;
+ delete [] fold_examples;
exit(0);
}
@@ -64,7 +65,8 @@
for (unsigned int h = 0; h < fold_examples[j].size(); h++)
out_train << fold_examples[j][h] << endl;
}
- }
+ }
+ delete [] fold_examples;
}
#ifdef STANDALONE