mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
fix some warnings from static analysis
http://code.google.com/p/webp/issues/detail?id=138 Change-Id: I21470e965357cc14eab356e2c477c7846ff76ef2
This commit is contained in:
@ -19,6 +19,10 @@
|
||||
|
||||
typedef LARGE_INTEGER Stopwatch;
|
||||
|
||||
static WEBP_INLINE void StopwatchReset(Stopwatch* watch) {
|
||||
QueryPerformanceCounter(watch);
|
||||
}
|
||||
|
||||
static WEBP_INLINE double StopwatchReadAndReset(Stopwatch* watch) {
|
||||
const LARGE_INTEGER old_value = *watch;
|
||||
LARGE_INTEGER freq;
|
||||
@ -37,6 +41,10 @@ static WEBP_INLINE double StopwatchReadAndReset(Stopwatch* watch) {
|
||||
|
||||
typedef struct timeval Stopwatch;
|
||||
|
||||
static WEBP_INLINE void StopwatchReset(Stopwatch* watch) {
|
||||
gettimeofday(watch, NULL);
|
||||
}
|
||||
|
||||
static WEBP_INLINE double StopwatchReadAndReset(Stopwatch* watch) {
|
||||
const struct timeval old_value = *watch;
|
||||
gettimeofday(watch, NULL);
|
||||
|
Reference in New Issue
Block a user