Mercurial > hg > octave-thorsten
changeset 14345:06f706e92771 stable
avoid profiler test failure on more systems
* profiler.cc (profile_data_accumulator::query_time): Declare dnow
volatile on all systems.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 08 Feb 2012 16:44:13 -0500 |
parents | acc26b860afa |
children | 9b23169e2712 1238163688a0 |
files | src/profiler.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/profiler.cc +++ b/src/profiler.cc @@ -385,11 +385,11 @@ profile_data_accumulator::query_time (void) const { octave_time now; - // FIXME -- this should be removed at some point... See bug 34210. -#if defined (__CYGWIN__) || defined (__MINGW32__) - volatile -#endif - double dnow = now.double_value (); + + // FIXME -- is this volatile declaration really needed? + // See bug #34210 for additional details. + volatile double dnow = now.double_value (); + return dnow; }