Boost C++ Libraries: Ticket #7641: g++ 4.7 inline warning https://svn.boost.org/trac10/ticket/7641 <p> #include &lt;boost/random/mersenne_twister.hpp&gt; </p> <p> int main(int argc, char* argv[]) { </p> <blockquote> <p> return 0; </p> </blockquote> <p> } </p> <p> g++ -m64 -c -g -march=core2 -mtune=core2 -pedantic -Wunused-variable -Wno-deprecated -Wno-long-long -pipe -Wall -D_REENTRANT -DLINUX -I/usr/local/boost/include test.cpp </p> <p> /usr/local/boost/include/boost/random/detail/integer_log2.hpp:71:35: warning: always_inline function might not be inlinable [-Wattributes] </p> <p> Fix change </p> <p> BOOST_RANDOM_DETAIL_CONSTEXPR int integer_log2(T t) </p> <p> to </p> <p> BOOST_RANDOM_DETAIL_CONSTEXPR inline int integer_log2(T t) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7641 Trac 1.4.3 viboes Sat, 01 Dec 2012 22:29:01 GMT component changed; owner set https://svn.boost.org/trac10/ticket/7641#comment:1 https://svn.boost.org/trac10/ticket/7641#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">No-Maintainer</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">random</span> </li> </ul> Ticket Steven Watanabe Sat, 16 Feb 2013 21:33:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7641#comment:2 https://svn.boost.org/trac10/ticket/7641#comment:2 <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">duplicate</span> </li> </ul> <p> Duplicates <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6854" title="#6854: Bugs: boost/random/detail/integer_log2.hpp:71:35: warning: always_inline ... (closed: fixed)">#6854</a>. </p> Ticket