benchmark.patch 543 B

1234567891011121314
  1. diff --git include/benchmark/benchmark.h include/benchmark/benchmark.h
  2. index 9b54802..baa5938 100755
  3. --- include/benchmark/benchmark.h
  4. +++ include/benchmark/benchmark.h
  5. @@ -364,7 +364,9 @@ template <class Tp>
  6. inline BENCHMARK_ALWAYS_INLINE void DoNotOptimize(Tp const& value) {
  7. internal::UseCharPointer(&reinterpret_cast<char const volatile&>(value));
  8. }
  9. +
  10. // FIXME Add ClobberMemory() for non-gnu and non-msvc compilers
  11. +inline BENCHMARK_ALWAYS_INLINE void ClobberMemory() { }
  12. #endif
  13. // This class is used for user-defined counters.