On Tue, Jul 29, 2014 at 5:27 PM, Peter Dimov
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.
Hm, I was under impression these were equivalent. Yep, they are: https://gcc.gnu.org/gcc-4.7/changes.html (I am assuming clang should be compatible with gcc; if not I consider it a bug anyway).