Mercurial > octave-libgccjit
diff src/profiler.cc @ 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 | 72c96de7a403 |
children |
line wrap: on
line diff
--- a/src/profiler.cc Wed Feb 08 15:42:28 2012 -0500 +++ b/src/profiler.cc Wed Feb 08 16:44:13 2012 -0500 @@ -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; }