Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clang & Boost Test: "empty macro arguments are a C99 feature" #74

Open
bchretien opened this issue Sep 25, 2014 · 1 comment
Open

Clang & Boost Test: "empty macro arguments are a C99 feature" #74

bchretien opened this issue Sep 25, 2014 · 1 comment
Labels

Comments

@bchretien
Copy link
Member

With Boost 1.56 and clang 3.5.0, I get the following error:

.../roboptim-core/tests/shared-tests/fixture.hh:46:5: error: empty macro arguments are a C99 feature [-Werror,-Wc99-extensions]
    BOOST_REQUIRE_EQUAL (lt_dlsetsearchpath (PLUGIN_PATH), 0);
    ^
/usr/include/boost/test/test_tools.hpp:171:5: note: expanded from macro 'BOOST_REQUIRE_EQUAL'
    BOOST_CHECK_WITH_ARGS_IMPL( ::boost::test_tools::tt_detail::equal_impl_frwd(), "", REQUIRE, CHECK_EQUAL, (L)(R) )
...
/usr/include/boost/preprocessor/variadic/elem.hpp:26:101: note: expanded from macro 'BOOST_PP_VARIADIC_ELEM'
#        define BOOST_PP_VARIADIC_ELEM(n, ...) BOOST_PP_CAT(BOOST_PP_VARIADIC_ELEM_, n)(__VA_ARGS__,)
                                                                                                    ^

It seems to be a known issue:

There's not much we can do, except enable C99 extensions.

@bchretien bchretien added the bug label Sep 25, 2014
@thomas-moulard
Copy link
Member

I guess that popping the warning for this clang version makes sense then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants