[mpl] MPL_ASSERT unused variable warning on GCC

The recent change to mpl/assert.hpp on HEAD is causing an unused variable warning on gcc 3.4, 4.0 and 4.1. The megabytes of resulting compiler debug spew is making my xpressive regression tests almost unrunnable. Aleksey? Eg.: ../../../boost/xpressive/detail/static/static.hpp:124: warning: unused variable 'mpl_assertion_in_line_124' -- Eric Niebler Boost Consulting www.boost-consulting.com

Eric Niebler writes:
The recent change to mpl/assert.hpp on HEAD is causing an unused variable warning on gcc 3.4, 4.0 and 4.1. The megabytes of resulting compiler debug spew is making my xpressive regression tests almost unrunnable. Aleksey?
Fixed now, thanks for the heads-up! -- Aleksey Gurtovoy MetaCommunications Engineering

Aleksey Gurtovoy <agurtovoy@meta-comm.com> writes:
Eric Niebler writes:
The recent change to mpl/assert.hpp on HEAD is causing an unused variable warning on gcc 3.4, 4.0 and 4.1. The megabytes of resulting compiler debug spew is making my xpressive regression tests almost unrunnable. Aleksey?
Fixed now, thanks for the heads-up!
I think your fix may have caused failed assertions to not cause a compilation error in some cases. This just appeared: http://engineering.meta-comm.com/boost-regression/CVS-RC_1_34_0/developer/ou... -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams writes:
Aleksey Gurtovoy <agurtovoy@meta-comm.com> writes:
Eric Niebler writes:
The recent change to mpl/assert.hpp on HEAD is causing an unused variable warning on gcc 3.4, 4.0 and 4.1. The megabytes of resulting compiler debug spew is making my xpressive regression tests almost unrunnable. Aleksey?
Fixed now, thanks for the heads-up!
I think your fix may have caused failed assertions to not cause a compilation error in some cases. This just appeared:
http://engineering.meta-comm.com/boost-regression/CVS-RC_1_34_0/developer/ou...
The test passes (that is, fails to compile) for me locally on the same compilers, plus the referenced results are older than the corresponding "mpl/assert.hpp" check in, so I'd say these will most likely clear up as soon as Martin uploads the next set of results. -- Aleksey Gurtovoy MetaCommunications Engineering
participants (3)
-
Aleksey Gurtovoy
-
David Abrahams
-
Eric Niebler