Commit [05b1fb]  Maximize  Restore  History

Fix 'make check' warning treated as error when using newer gcc

A gcc 4.7.1 reports the following error when running 'make check':

../../../oprofile.git/libutil++/tests/cached_value_tests.cpp: In function \u2018bool {anonymous}::check_throw(const cached_value<bool>&)\u2019:
../../../oprofile.git/libutil++/tests/cached_value_tests.cpp:25:8: error: variable \u2018foo\u2019 set but not used [-Werror=unused-but-set-variable]

This patch fixes this problem.

Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>

Maynard Johnson Maynard Johnson 2012-07-24

changed libutil++/tests/cached_value_tests.cpp
libutil++/tests/cached_value_tests.cpp Diff Switch to side-by-side view
Loading...