Boost C++ Libraries: Ticket #12204: Boost 1.61.0 mulitiprecision introduces warning on clang / OS X https://svn.boost.org/trac10/ticket/12204 <p> This change: </p> <p> <a class="ext-link" href="https://github.com/boostorg/multiprecision/commit/df773c7ab293118eb29eac52067a0466431c9a96"><span class="icon">​</span>https://github.com/boostorg/multiprecision/commit/df773c7ab293118eb29eac52067a0466431c9a96</a> </p> <p> Introduces these warnings on OS X / clang: </p> <pre class="wiki">In file included from /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/cpp_int.hpp:12: In file included from /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/number.hpp:22: In file included from /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/detail/generic_interconvert.hpp:9: In file included from /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/detail/default_ops.hpp:10: /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/detail/number_base.hpp:415:13: warning: conversion function converting 'expression&lt;type-parameter-0-0, type-parameter-0-1, void, void, void&gt;' to 'void' will never be used explicit operator void()const {} ^ /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/detail/number_base.hpp:479:13: warning: conversion function converting 'expression&lt;boost::multiprecision::detail::terminal, type-parameter-0-0, void, void, void&gt;' to 'void' will never be used explicit operator void()const {} ^ /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/detail/number_base.hpp:547:13: warning: conversion function converting 'expression&lt;type-parameter-0-0, type-parameter-0-1, type-parameter-0-2, void, void&gt;' to 'void' will never be used explicit operator void()const {} ^ /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/detail/number_base.hpp:626:13: warning: conversion function converting 'expression&lt;type-parameter-0-0, type-parameter-0-1, type-parameter-0-2, type-parameter-0-3, void&gt;' to 'void' will never be used explicit operator void()const {} ^ /Users/howardhinnant/Development/boost_1_61_0/boost/multiprecision/detail/number_base.hpp:714:13: warning: conversion function converting 'expression&lt;tag, Arg1, Arg2, Arg3, Arg4&gt;' to 'void' will never be used explicit operator void()const {} ^ </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12204 Trac 1.4.3 anonymous Fri, 13 May 2016 15:59:41 GMT component changed; owner set https://svn.boost.org/trac10/ticket/12204#comment:1 https://svn.boost.org/trac10/ticket/12204#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">multiprecision</span> </li> </ul> Ticket howard.hinnant@… Fri, 13 May 2016 16:04:37 GMT <link>https://svn.boost.org/trac10/ticket/12204#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12204#comment:2</guid> <description> <p> Also using clang 3.8 on linux this additional warning has been noted: </p> <pre class="wiki">boost/multiprecision/cpp_int/bitwise.hpp:354:9: warning: unused variable 'truncated' [-Wunused-variable] bool truncated = result.size() != rs; </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 16 May 2016 17:26:56 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12204#comment:3 https://svn.boost.org/trac10/ticket/12204#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks Howard, fixed in <a class="ext-link" href="https://github.com/boostorg/multiprecision/commit/5acec4238a4215670949b455ebcc3c3c6508ef2c"><span class="icon">​</span>https://github.com/boostorg/multiprecision/commit/5acec4238a4215670949b455ebcc3c3c6508ef2c</a> </p> Ticket