BOOST_CHECK_THROW gives spirious warning

Hello, when running "bjam test" in libs/program_options/test, I get this: ../../../libs/program_options/test/cmdline_test.cpp:472: warning: statement with no effect Line 472 contains: BOOST_CHECK_THROW(cmdline cmd(1, (const char*const *)argv, allow_long), invalid_command_line_style); and I did not touch that line for a long time. I think the warning is caused by some Boost.Test change. Any change to fix this? Thanks, Volodya

"Vladimir Prus" <ghost@cs.msu.su> wrote in message news:200502111717.10417.ghost@cs.msu.su...
Hello, when running "bjam test" in libs/program_options/test, I get this:
../../../libs/program_options/test/cmdline_test.cpp:472: warning:
statement
with no effect
Line 472 contains:
BOOST_CHECK_THROW(cmdline cmd(1, (const char*const *)argv, allow_long), invalid_command_line_style);
and I did not touch that line for a long time. I think the warning is caused by some Boost.Test change. Any change to fix this?
I will look into this. Gennadiy
participants (2)
-
Gennadiy Rozental
-
Vladimir Prus