Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-biology/allpaths/files: allpaths-3.1-gcc4.7.patch
Date: Thu, 30 Aug 2012 07:32:37
Message-Id: 20120830073221.D71ED20C26@flycatcher.gentoo.org
1 jlec 12/08/30 07:32:21
2
3 Added: allpaths-3.1-gcc4.7.patch
4 Log:
5 sci-biology/allpaths: Fix for gcc-4.7
6
7 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sci-biology/allpaths/files/allpaths-3.1-gcc4.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/allpaths/files/allpaths-3.1-gcc4.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/allpaths/files/allpaths-3.1-gcc4.7.patch?rev=1.1&content-type=text/plain
14
15 Index: allpaths-3.1-gcc4.7.patch
16 ===================================================================
17 MakeDepend.cc | 1 +
18 Vec.h | 4 ++--
19 feudal/FeudalControlBlock.cc | 1 +
20 feudal/FeudalFileReader.h | 1 +
21 feudal/MasterVec.h | 6 +++---
22 feudal/SerfVec.h | 4 ++--
23 6 files changed, 10 insertions(+), 7 deletions(-)
24
25 diff --git a/MakeDepend.cc b/MakeDepend.cc
26 index 93032e8..619e6f7 100644
27 --- a/MakeDepend.cc
28 +++ b/MakeDepend.cc
29 @@ -25,6 +25,7 @@
30 #include <iterator>
31 #include <iostream>
32 #include <ctype.h>
33 +#include <unistd.h>
34
35 using namespace std;
36
37 diff --git a/Vec.h b/Vec.h
38 index f26f3f4..57eeff9 100644
39 --- a/Vec.h
40 +++ b/Vec.h
41 @@ -259,7 +259,7 @@ template <class T> class vec : public vector<T> {
42
43 template <class U>
44 void append( const vec<U>& y )
45 - { insert( this->end( ), y.begin( ), y.end( ) ); }
46 + { this->insert( this->end( ), y.begin( ), y.end( ) ); }
47
48 void append( const vec<T>& y, size_type i, size_type j ) {
49 if ( j == y.size( ) ) insert( this->end( ), y.begin( ) + i, y.end( ) );
50 @@ -402,7 +402,7 @@ template <class T> class vec : public vector<T> {
51
52 /// EraseValue: erase all entries having the given value.
53 void EraseValue( const T& x ) {
54 - erase(remove(this->begin(), this->end(), x), this->end());
55 + this->erase(remove(this->begin(), this->end(), x), this->end());
56 }
57
58 /// print values to ostream, separated by sep.
59 diff --git a/feudal/FeudalControlBlock.cc b/feudal/FeudalControlBlock.cc
60 index bc64ecd..a709320 100644
61 --- a/feudal/FeudalControlBlock.cc
62 +++ b/feudal/FeudalControlBlock.cc
63 @@ -24,6 +24,7 @@
64 #include <string.h>
65 #include <errno.h>
66 #include <iostream>
67 +#include <unistd.h>
68
69 using std::cout;
70 using std::endl;
71 diff --git a/feudal/FeudalFileReader.h b/feudal/FeudalFileReader.h
72 index b71bf6d..073a1a1 100644
73 --- a/feudal/FeudalFileReader.h
74 +++ b/feudal/FeudalFileReader.h
75 @@ -13,6 +13,7 @@
76 #include <string>
77 #include <cassert>
78 #include <sstream>
79 +#include <unistd.h>
80 #include "feudal/BinaryStream.h"
81
82 /**
83 diff --git a/feudal/MasterVec.h b/feudal/MasterVec.h
84 index e6477d9..45a8640 100644
85 --- a/feudal/MasterVec.h
86 +++ b/feudal/MasterVec.h
87 @@ -60,7 +60,7 @@ public:
88 /// This function is deprecated: Use reserve() instead.
89 /// The pool size argument is ignored, anyway.
90 MasterVec& Reserve( unsigned long raw_mem_size_ignored, size_type capacity )
91 - { reserve(capacity); return *this; }
92 + { this->reserve(capacity); return *this; }
93
94 /// This function is deprecated: Use clear().shrink_to_fit().
95 MasterVec& destroy() { BaseT::clear(); BaseT::shrink_to_fit(); return *this; }
96 @@ -73,7 +73,7 @@ public:
97 MasterVec& push_back_reserve( T const& val,
98 size_type growthIncr = 0,
99 float growthFact = 1.3f )
100 - { push_back(val,growthFact,growthIncr); return *this; }
101 + { this->push_back(val,growthFact,growthIncr); return *this; }
102
103 /// This function is deprecated: Use append().
104 MasterVec& Append( MasterVec const& that )
105 @@ -99,7 +99,7 @@ public:
106 { if ( !append ) BaseT::clear();
107 FeudalFileReader rdr(fileName.c_str(),T::fixedDataLen());
108 size_type siz = rdr.getNElements();
109 - reserve(BaseT::size()+siz);
110 + this->reserve(BaseT::size()+siz);
111 for ( size_type iii = 0; iii < siz; ++iii )
112 appendFromReader(rdr,iii);
113 return *this; }
114 diff --git a/feudal/SerfVec.h b/feudal/SerfVec.h
115 index e91847c..d5f053d 100644
116 --- a/feudal/SerfVec.h
117 +++ b/feudal/SerfVec.h
118 @@ -79,10 +79,10 @@ public:
119 /// Deprecated: Use assign().
120 SerfVec& SetToSubOf( SerfVec const& that, size_type pos, size_type len )
121 { if ( this != &that )
122 - { assign(that.begin(pos),that.begin(pos+len)); }
123 + { this->assign(that.begin(pos),that.begin(pos+len)); }
124 else
125 { assert(that.size()>=pos+len);
126 - erase(BaseT::begin(),BaseT::begin(pos));
127 + this->erase(BaseT::begin(),BaseT::begin(pos));
128 BaseT::resize(len); }
129 return *this; }