Boost C++ Libraries: Ticket #11552: Warning from chrono that could helpfully be suppressed https://svn.boost.org/trac10/ticket/11552 <blockquote> <p> Boost.Chrono is emitting warnings with GCC (5.1.0) that cannot be suppressed even using the following cxxflags in the user jamfile </p> </blockquote> <pre class="wiki"> &lt;toolset&gt;gcc:&lt;cxxflags&gt;-Wno-deprecated-declarations &lt;toolset&gt;gcc:&lt;cxxflags&gt;-Wno-long-long &lt;toolset&gt;gcc:&lt;cxxflags&gt;-ftrack-macro-expansion=0 # Suppress note: in expansion of macro </pre><p> and they are repeated on every compilation which is quite annoying when reading the log file. </p> <p> For example: </p> <pre class="wiki">gcc.compile.c++ ..\..\..\bin.v2\libs\timer\build\gcc-mingw-5.1.0\debug\link-static\auto_timers_construction.o In file included from C:/Program Files/mingw-w64/x86_64-5.1.0-win32-seh-rt_v4-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/stdint.h:9:0, from ..\..\../boost/cstdint.hpp:60, from ..\..\../boost/ratio/config.hpp:13, from ..\..\../boost/ratio/ratio.hpp:35, from ..\..\../boost/chrono/duration.hpp:41, from ..\..\../boost/chrono/chrono.hpp:11, from ..\..\../boost/timer/timer.hpp:14, from ..\..\..\libs\timer\src\auto_timers_construction.cpp:23: ..\..\../boost/chrono/system_clocks.hpp:77:111: warning: use of C++11 long long integer constant [-Wlong-long] # define BOOST_SYSTEM_CLOCK_DURATION boost::chrono::duration&lt;boost::int_least64_t, ratio&lt;BOOST_RATIO_INTMAX_C(1), BOOST_RATIO_INTMAX_C(10000000)&gt; &gt; ^ ..\..\../boost/chrono/system_clocks.hpp:77:90: note: in expansion of macro 'BOOST_RATIO_INTMAX_C' # define BOOST_SYSTEM_CLOCK_DURATION boost::chrono::duration&lt;boost::int_least64_t, ratio&lt;BOOST_RATIO_INTMAX_C(1), BOOST_RATIO_INTMAX_C(10000000)&gt; &gt; </pre><p> and more... </p> <p> It would be nice if the user would not see these (spurious?) warnings. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11552 Trac 1.4.3 viboes Sat, 18 Feb 2017 08:35:47 GMT description changed https://svn.boost.org/trac10/ticket/11552#comment:1 https://svn.boost.org/trac10/ticket/11552#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/11552?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket viboes Sat, 18 Feb 2017 08:37:01 GMT status, component changed https://svn.boost.org/trac10/ticket/11552#comment:2 https://svn.boost.org/trac10/ticket/11552#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>component</strong> <span class="trac-field-old">date_time</span> → <span class="trac-field-new">ratio</span> </li> </ul> Ticket viboes Sat, 18 Feb 2017 12:32:25 GMT <link>https://svn.boost.org/trac10/ticket/11552#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11552#comment:3</guid> <description> <p> Please, could you check why INTMAX_C is not defined in your env. I'm using it as follows </p> <pre class="wiki">#ifdef INTMAX_C #define BOOST_RATIO_INTMAX_C(a) INTMAX_C(a) #else #define BOOST_RATIO_INTMAX_C(a) a##LL #endif </pre><p> and I home that </p> <pre class="wiki">#include &lt;boost/cstdint.hpp&gt; </pre><p> will define it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 18 Feb 2017 12:33:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11552#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11552#comment:4</guid> <description> <p> Maybe I could define it conditionally to C++11 use. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Sun, 19 Feb 2017 14:43:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11552#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11552#comment:5</guid> <description> <p> As I recall, I was just trying to build all the standard libraries using b2 in the normal way. </p> <p> --toolset=gcc-510 address-model=64 architecture=x86 build-type=complete (I think) </p> <p> boost/cstdint.hpp has been run, but the labrythine code within it makes my brain hurt, so I don't see where BOOST_RATIO_INTMAX_C is being called and how, but it is providing a bigger value than is expected? </p> <p> Doubt if this helps but ... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 22 Aug 2017 20:51:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11552#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11552#comment:6</guid> <description> <p> It is called from your trace </p> <pre class="wiki">boost::chrono::duration&lt;boost::int_least64_t, ratio&lt;BOOST_RATIO_INTMAX_C(1), BOOST_RATIO_INTMAX_C(10000000)&gt; &gt; </pre> </description> <category>Ticket</category> </item> </channel> </rss>