Skip to content

Commit

Permalink
disable MSCV warning on padding for Chronometer helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
gentryx committed Feb 24, 2017
1 parent 2ffa241 commit a6a1a59
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/libgeodecomp/misc/chronometer.h
Expand Up @@ -18,6 +18,11 @@ namespace ChronometerHelpers {
template<int ID>
class EventUtil;

#ifdef _MSC_BUILD
#pragma warning( push )
#pragma warning( disable : 4820 )
#endif

/**
* This class is being subclassed from by generated event classes (see
* below).
Expand All @@ -41,15 +46,18 @@ class BasicTimerImplementation

protected:
double *totalTimes;
double t;

double elapsed() const
{
return ScopedTimer::time() - t;
}

double t;
};

#ifdef _MSC_BUILD
#pragma warning( pop )
#endif

/**
* See above.
*/
Expand Down

0 comments on commit a6a1a59

Please sign in to comment.