Boost logo

Boost :

Subject: Re: [boost] Showstopper for Boost 1.56?
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2014-07-29 08:12:48


On 29 Jul 2014 at 13:11, Jürgen Hunold wrote:

> > Is anyone else seeing this warnings spew on Boost 1.56 beta when
> > compiled with clang 3.4?
>
> No. But I don't see an AFIO module at the moment.

It hasn't been reviewed yet. It's very easy to install though, see
https://ci.nedprod.com/job/Boost.AFIO%20Build%20Documentation/Boost.AF
IO_Documentation/doc/html/afio/compilation.html.

> > https://ci.nedprod.com/view/Boost.AFIO/job/Boost.AFIO%20Build%20POSIX_
> > Linux64_clang%203.4/11/consoleFull
>
> Yes, clang has a lot more warning. Which ones did you enable?

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"

If you ask b2 to print what it's actually calling clang++ with, you
get:

  "clang++" -c -x c++ -std=c++0x -fvisibility-inlines-hidden
-fstrict-aliasing -Wstrict-aliasing -Wno-unused -Wno-mismatched-tags
-fvisibility=hidden -fopenmp -fasynchronous-unwind-tables -O3
-finline-functions -Wno-inline -Wall -pthread -fPIC -std=c++0x
-fvisibility-inlines-hidden -fstrict-aliasing -Wstrict-aliasing
-Wno-unused -Wno-mismatched-tags -fvisibility=hidden -fopenmp
-fasynchronous-unwind-tables -DBOOST_AFIO_DYN_LINK=1
-DBOOST_AFIO_SOURCE=1 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1
-DBOOST_CHRONO_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1
-DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED
-DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX
-DBOOST_THREAD_USE_DLL=1 -DNDEBUG -I"." -I"boost/afio" -o
"bin.v2/libs/afio/build/clang-linux-3.4/release/threading-multi/afio.o
" "libs/afio/src/afio.cpp"

I don't see what would cause the -Wc99-extensions spew, apart from
-Wall which isn't being added by me.

I see that clang 3.3 has the same warnings spew:

https://ci.nedprod.com/view/Boost.AFIO/job/Boost.AFIO%20Build%20POSIX_
Linux32_clang%203.3/9/console

As does clang 3.2:

https://ci.nedprod.com/view/Boost.AFIO/job/Boost.AFIO%20Build%20POSIX_
Linux32_clang%203.2/9/console

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ 
http://ie.linkedin.com/in/nialldouglas/



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk