|
Boost : |
From: Iulian M (eti_at_[hidden])
Date: 2006-02-15 07:15:10
Hi,
Compiling the file boost/test/impl/execution_monitor.ipp
with gcc-3.4 ( freebsd ) with the following :
g++ -O2 -Werror -Wall -W test.cpp
( test.cpp contains only #include <boost/test/impl/execution_monitor.ipp> )
produces two warnings:
boost/test/impl/execution_monitor.ipp:422 warning: variable 'result' might be
clobbered by `longjmp' or `vfork'
boost/test/impl/execution_monitor.ipp:423 warning: variable 'ec' might be
clobbered by `longjmp' or `vfork'
Moving the two variables declarations a few lines down, after the
volatile int sigtype = sigsetjmp( signal_handler::jump_buffer(), 1 );
solves the problem.
Regards,
Iulian M.
-- Tonight's the night: Sleep in a eucalyptus tree.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk