29 Jul
2014
29 Jul
'14
1:27 p.m.
Andrey Semashev wrote:
On Tue, Jul 29, 2014 at 4:12 PM, Niall Douglas
wrote: I don't believe I do anything special here. Moreover I wasn't seeing this warning spew on Boost 1.55 with identical code.
Here is what Jamfile sets:
<toolset>clang:<cxxflags>"-std=c++0x -fvisibility-inlines-hidden -fstrict-aliasing -Wstrict-aliasing -Wno-unused -Wno-mismatched-tags -fvisibility=hidden -fopenmp -fasynchronous-unwind-tables"
Unless I'm missing something, C++11 includes C99 preprocessor (variadic macros, at least). So I don't see why these warnings should be emitted. A compiler bug perhaps?
C++11 (-std=c++11) does, but -std=c++0x probably doesn't.