Commit e1731612 authored by Andreas Tille's avatar Andreas Tille

Fix FTBFS with clang

parent 14e45151
srf (0.1+dfsg-3) UNRELEASED; urgency=medium
* Fix FTBFS with clang (thanks for the patch to
Nicolas Sévelin-Radiguet <nicosr@free.fr>)
Closes: #745350
-- Andreas Tille <tille@debian.org> Sun, 20 Apr 2014 23:38:02 +0200
srf (0.1+dfsg-2) unstable; urgency=low
* Update to recent packaging standards and rebuild
......
Description: fix FTBFS with clang instead of gcc
Author: Nicolas Sévelin-Radiguet <nicosr@free.fr>
Last-Update: 2014-04-20
--- a/test/testRead.cc
+++ b/test/testRead.cc
@@ -29,7 +29,7 @@
}
-main(int argc, char* argv[])
+int main(int argc, char* argv[])
{
if ( argc != 2 )
{
@@ -65,4 +65,5 @@
{
read->dump();
}
+ return 0;
}
--- a/test/testWrite.cc
+++ b/test/testWrite.cc
@@ -21,7 +21,7 @@
return oss.str();
}
-main(int argc, char **argv)
+int main(int argc, char **argv)
{
SRF_File::openType mode = SRF_File::openTypeWrite;
SRF_File file( "myFirstSSRFFile", mode );
--- a/test/testWriteFastaq.cc
+++ b/test/testWriteFastaq.cc
@@ -22,7 +22,7 @@
#include <io_lib/ztr.h>
#include <zlib.h>
-main(int argc, char* argv[])
+int main(int argc, char* argv[])
{
if ( argc != 3 )
{
@@ -115,5 +115,6 @@
}
}
newReadSet.write( file.getFile(), ztrBlobs, readIds );
+ return 0;
}
--- a/test/testWriteSFF.cc
+++ b/test/testWriteSFF.cc
@@ -31,7 +31,7 @@
return oss.str();
}
-main(int argc, char* argv[])
+int main(int argc, char* argv[])
{
if ( argc != 3 )
{
@@ -75,5 +75,6 @@
readIdCounter++;
}
newReadSet.write( file.getFile(), ztrBlobs, readIds );
+ return 0;
}
build_with_GCC-4.3.patch
io_lib_renamed.patch
clang_FTBFS_wrong-main-declaration.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment