mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-05 22:04:27 +08:00
get rid of some more warnings
This commit is contained in:
@@ -41,7 +41,7 @@ ExplicitBitVect::ExplicitBitVect(const char *data,const unsigned int dataLen)
|
||||
initFromText(data,dataLen);
|
||||
}
|
||||
|
||||
ExplicitBitVect::ExplicitBitVect(const ExplicitBitVect& other){
|
||||
ExplicitBitVect::ExplicitBitVect(const ExplicitBitVect& other) : BitVect(other) {
|
||||
d_size = other.d_size;
|
||||
dp_bits = new boost::dynamic_bitset<>(*(other.dp_bits));
|
||||
d_numOnBits=other.d_numOnBits;
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
explicit SparseBitVect(unsigned int size): dp_bits(0), d_size(0) {_initForSize(size); };
|
||||
|
||||
//! copy constructor
|
||||
SparseBitVect(const SparseBitVect& other){
|
||||
SparseBitVect(const SparseBitVect& other) : BitVect(other) {
|
||||
d_size=0;dp_bits = 0;
|
||||
_initForSize(other.getNumBits());
|
||||
IntSet *bv=other.dp_bits;
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace RDKit{
|
||||
|
||||
//! set the value at an index
|
||||
void setVal(IndexType idx, int val){
|
||||
if(idx<0||idx>=d_length){
|
||||
if(idx>=d_length){
|
||||
throw IndexErrorException(static_cast<int>(idx));
|
||||
}
|
||||
if(val!=0){
|
||||
@@ -86,7 +86,7 @@ namespace RDKit{
|
||||
};
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined(__GNUC__) || defined(__GNUG__) && \
|
||||
#elif ( defined(__GNUC__) || defined(__GNUG__) ) && \
|
||||
( __GNUC__ > 4 || \
|
||||
(__GNUC__ == 4 && __GNUC_MINOR__ > 1 ) )
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user