pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Fix "implicit conversion changes signedness" warnings ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fc4da6ffc601
branches:  trunk
changeset: 632528:fc4da6ffc601
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Mar 31 08:36:50 2014 +0000

description:
Fix "implicit conversion changes signedness" warnings in installed
header files.
Reported as https://svn.boost.org/trac/boost/ticket/9725
Bump boost-headers PKGREVISION.

diffstat:

 devel/boost-headers/Makefile                                            |   4 +-
 meta-pkgs/boost/distinfo                                                |   3 +-
 meta-pkgs/boost/patches/patch-boost_dynamic__bitset_dynamic__bitset.hpp |  34 ++++++++++
 3 files changed, 38 insertions(+), 3 deletions(-)

diffs (67 lines):

diff -r 09e2432347ad -r fc4da6ffc601 devel/boost-headers/Makefile
--- a/devel/boost-headers/Makefile      Mon Mar 31 08:35:27 2014 +0000
+++ b/devel/boost-headers/Makefile      Mon Mar 31 08:36:50 2014 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.29 2014/02/21 20:22:09 joerg Exp $
+# $NetBSD: Makefile,v 1.30 2014/03/31 08:36:50 wiz Exp $
 
-PKGREVISION=           1
+PKGREVISION=           2
 BOOST_PACKAGE=         headers
 BOOST_COMMENT=         (build-time headers)
 BOOST_CONFIG=          generate
diff -r 09e2432347ad -r fc4da6ffc601 meta-pkgs/boost/distinfo
--- a/meta-pkgs/boost/distinfo  Mon Mar 31 08:35:27 2014 +0000
+++ b/meta-pkgs/boost/distinfo  Mon Mar 31 08:36:50 2014 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.64 2014/03/18 15:55:35 ryoon Exp $
+$NetBSD: distinfo,v 1.65 2014/03/31 08:36:51 wiz Exp $
 
 SHA1 (boost_1_55_0.tar.bz2) = cef9a0cc7084b1d639e06cd3bc34e4251524c840
 RMD160 (boost_1_55_0.tar.bz2) = de8ef647933a005119425326b59723aad4a6fd4f
@@ -15,6 +15,7 @@
 SHA1 (patch-boost_asio_detail_config.hpp) = b95ca6b0bb6c805624cb81c91c3f1b691a7425ca
 SHA1 (patch-boost_config_stdlib_libcpp.hpp) = d243325d3aeb180e4ed7a1fd7d89782d832fa9fc
 SHA1 (patch-boost_config_stdlib_libstdcpp3.hpp) = 173271c60b3e2ba7bb1fe9390dcd864ce9742588
+SHA1 (patch-boost_dynamic__bitset_dynamic__bitset.hpp) = e38ec618da58fdfc086e32ab2c184a0c02ba2ced
 SHA1 (patch-boost_math_tools_config.hpp) = 81402bc38dc858d0818ed91e204966c8382be4ff
 SHA1 (patch-boost_noncopyable.hpp) = 6567b5932c6bb48e8b2fcae48ff47e0f230fc1b9
 SHA1 (patch-libs_config_configure) = e2f204d4fa4f1bd9b4131d28f9be0a1ac22bf711
diff -r 09e2432347ad -r fc4da6ffc601 meta-pkgs/boost/patches/patch-boost_dynamic__bitset_dynamic__bitset.hpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/meta-pkgs/boost/patches/patch-boost_dynamic__bitset_dynamic__bitset.hpp   Mon Mar 31 08:36:50 2014 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-boost_dynamic__bitset_dynamic__bitset.hpp,v 1.1 2014/03/31 08:36:51 wiz Exp $
+
+Fix "implicit conversion changes signedness" warnings.
+https://svn.boost.org/trac/boost/ticket/9725
+
+--- boost/dynamic_bitset/dynamic_bitset.hpp.orig       2013-09-21 20:17:00.000000000 +0000
++++ boost/dynamic_bitset/dynamic_bitset.hpp
+@@ -1230,7 +1230,7 @@ dynamic_bitset<Block, Allocator>::m_do_f
+     if (i >= num_blocks())
+         return npos; // not found
+ 
+-    return i * bits_per_block + boost::lowest_bit(m_bits[i]);
++    return i * bits_per_block + static_cast<size_type>(boost::lowest_bit(m_bits[i]));
+ 
+ }
+ 
+@@ -1261,7 +1261,7 @@ dynamic_bitset<Block, Allocator>::find_n
+     const Block fore = m_bits[blk] & ( ~Block(0) << ind );
+ 
+     return fore?
+-        blk * bits_per_block + lowest_bit(fore)
++        blk * bits_per_block + static_cast<size_type>(lowest_bit(fore))
+         :
+         m_do_find_from(blk + 1);
+ 
+@@ -1694,7 +1694,7 @@ inline typename dynamic_bitset<Block, Al
+ dynamic_bitset<Block, Allocator>::calc_num_blocks(size_type num_bits)
+ {
+     return num_bits / bits_per_block
+-           + static_cast<int>( num_bits % bits_per_block != 0 );
++           + static_cast<size_type>( num_bits % bits_per_block != 0 );
+ }
+ 
+ // gives a reference to the highest block



Home | Main Index | Thread Index | Old Index