Skip to content

Commit

Permalink
attempt to silence #pragma warnings for gcc < 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jan 14, 2014
1 parent 2b94742 commit 8fc6085
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/pdal/Dimension.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,10 @@ class PDAL_DLL Dimension
a std::out_of_range exception will be thrown.
\endverbatim
*/
#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6 && !defined(_MSC_VER))
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wsign-compare"
# pragma GCC diagnostic ignored "-Wsign-compare"
#endif

template<class T>
inline T removeScaling(double const& v) const
Expand Down Expand Up @@ -522,7 +524,9 @@ class PDAL_DLL Dimension
}
return output;
}
#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6 && !defined(_MSC_VER))
# pragma GCC diagnostic pop
#endif

/// Return the dimension::Interpretation for a given stdint.h-style type name
/// such as `int32_t` or `uint8_t`.
Expand Down

0 comments on commit 8fc6085

Please sign in to comment.