ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/boost-1.47.0-fix-strict-overflow.patch
(Generate patch)

Comparing COMP/CMSDIST/boost-1.47.0-fix-strict-overflow.patch (file contents):
Revision 1.1 by eulisse, Mon Oct 3 15:49:02 2011 UTC vs.
Revision 1.2 by eulisse, Tue Oct 4 07:18:22 2011 UTC

# Line 12 | Line 12 | index ca9898f..2eb4782 100644
12         sub += 2;
13         if(sub < (int)m_subs.size() && (sub >= 0))
14         {
15 + diff --git a/boost/date_time/int_adapter.hpp b/boost/date_time/int_adapter.hpp
16 + index fc98fc1..fd089ad 100644
17 + --- a/boost/date_time/int_adapter.hpp
18 + +++ b/boost/date_time/int_adapter.hpp
19 + @@ -20,7 +20,10 @@
20 +
21 + namespace boost {
22 + namespace date_time {
23 + -
24 + +#if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 6)
25 + +#pragma GCC diagnostic push
26 + +#pragma GCC diagnostic ignored "-Wstrict-overflow"
27 + +#endif
28 +
29 + //! Adapter to create integer types with +-infinity, and not a value
30 + /*! This class is used internally in counted date/time representations.
31 + @@ -504,6 +505,8 @@ private:
32 +
33 + } } //namespace date_time
34 +
35 + -
36 + +#if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 6)
37 + +#pragma GCC diagnostic pop
38 + +#endif
39 +
40 + #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines