Get things building with gcc4.4 on centos6

* Fixes exposing shared_ptr<const T> to python

* remove some of the pragmas for pre 4.5 versions of gcc

* get things working with centos6 and gcc4.4
This commit is contained in:
Greg Landrum
2016-04-17 17:48:35 +02:00
committed by Brian Kelley
parent 06326dbaaf
commit c0f9be86c8
6 changed files with 37 additions and 13 deletions

View File

@@ -54,9 +54,11 @@ class SparseIntVect {
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#elif(defined(__GNUC__) || defined(__GNUG__)) && \
#elif (defined(__GNUC__) || defined(__GNUG__)) && \
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1))
#if (__GNUC__ > 4 || __GNUC_MINOR__ > 5)
#pragma GCC diagnostic push
#endif
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
//! return the value at an index
@@ -85,8 +87,8 @@ class SparseIntVect {
};
#ifdef __clang__
#pragma clang diagnostic pop
#elif(defined(__GNUC__) || defined(__GNUG__)) && \
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1))
#elif (defined(__GNUC__) || defined(__GNUG__)) && \
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
#pragma GCC diagnostic pop
#endif
//! support indexing using []