On 30 Jul 2014 at 10:44, Edward Diener wrote:
Is anyone else seeing this warnings spew on Boost 1.56 beta when compiled with clang 3.4?
https://ci.nedprod.com/view/Boost.AFIO/job/Boost.AFIO%20Build%20POSIX_ Linux64_clang%203.4/11/consoleFull
GCC 4.8 produces no such spew.
I cannot duplicate, using clang, the sort of excessive output in your link above with the tests of the Boost PP library, or the tests in my VMD library which exercise various Boost PP variadic macros pretty extensively.
Others have also reported such spew, but not everyone. It might be a clang packaging thing.
My clang command line options for the tests looks like:
"clang++" -c -x c++ -O0 -g -fno-inline -Wall -g -fPIC
Can you tell me what the clang command line in your AFIO tests in your link above actually is ?
AFIO itself does not trigger any of the spew, as it does not use Preprocessor. Rather it is the dependent libraries such as Thread, Filesystem, ASIO, Test etc. I did actually post this earlier, but as I have a SSH session open right now here it is again, this being an example from Boost.Test: "clang++" -c -x c++ -O0 -g -fno-inline -Wall -pedantic -g -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_TEST_DYN_LINK=1 -I"." -o "bin.v2/libs/test/build/clang-linux-3.4.2/debug/threading-multi/debug. o" "libs/test/src/debug.cpp" In file included from libs/test/src/debug.cpp:16: In file included from ./boost/test/impl/debug.ipp:21: In file included from ./boost/test/detail/global_typedef.hpp:18: In file included from ./boost/test/utils/basic_cstring/basic_cstring.hpp:21: In file included from ./boost/test/utils/basic_cstring/bcs_char_traits.hpp:22: In file included from ./boost/type_traits/add_const.hpp:16: In file included from ./boost/type_traits/detail/type_trait_def.hpp:14: In file included from ./boost/type_traits/detail/template_arity_spec.hpp:12: In file included from ./boost/mpl/aux_/preprocessor/params.hpp:46: In file included from ./boost/preprocessor/repeat.hpp:15: In file included from ./boost/preprocessor/repetition/repeat.hpp:21: ./boost/preprocessor/tuple/eat.hpp:23:26: warning: variadic macros are a C99 feature [-Wvariadic-macros] # define BOOST_PP_EAT(...) ^ In file included from libs/test/src/debug.cpp:16: In file included from ./boost/test/impl/debug.ipp:56: In file included from ./boost/test/utils/class_properties.hpp:24: In file included from ./boost/preprocessor/seq/for_each.hpp:20: In file included from ./boost/preprocessor/tuple/elem.hpp:20: In file included from ./boost/preprocessor/facilities/overload.hpp:17: ./boost/preprocessor/variadic/size.hpp:25:40: warning: variadic macros are a C99 feature [-Wvariadic-macros] # define BOOST_PP_VARIADIC_SIZE(...) BOOST_PP_VARIADIC_SIZE_I(__VA_ARGS__, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,) ^ ./boost/preprocessor/variadic/size.hpp:27:354: warning: variadic macros are a C99 feature [-Wvariadic-macros] # define BOOST_PP_VARIADIC_SIZE_I(e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16, e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31, e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46, e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61, e62, e63, size, ...) size I have set it running to generate a complete set of spew with how clang++ was called so you can nail all the occasions with #pragma. It's only a wee ARM board, so it will take a while as there are a few hundred Mb of stuff. Once done I'll upload it to Google Drive and post the link here. Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/