summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-04-19 13:35:04 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-04-19 13:35:04 +0900
commitc48c17238b5c55cc97bfcca19ca623cee276501f (patch)
treed3c42347b26348a6a36eced3bf2f222b2e82fc72
parent87281e7cb8e47cace208a1b0cf3109b37156418a (diff)
downloadpersistence-client-library-c48c17238b5c55cc97bfcca19ca623cee276501f.tar.gz
fix error on compiling meta-ivi 12.0 for qemux86, vexpressa9
| persistence_client_library_benchmark.c:86:23: error: conversion to 'long int' from 'long long int' may alter its value [-Werror=conversion] | durationInit += getNsDuration(&initStart, &initEnd); | ^~~~~~~~~~~~~ Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--test/persistence_client_library_benchmark.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/persistence_client_library_benchmark.c b/test/persistence_client_library_benchmark.c
index 3c48469..900a6ec 100644
--- a/test/persistence_client_library_benchmark.c
+++ b/test/persistence_client_library_benchmark.c
@@ -71,8 +71,8 @@ inline long getMsDuration(struct timespec* start, struct timespec* end)
void init_benchmark(int numLoops)
{
int i = 0;
- long durationInit = 0;
- long durationDeInit = 0;
+ long long durationInit = 0;
+ long long durationDeInit = 0;
struct timespec initStart, initEnd;
struct timespec deInitStart, deInitEnd;
int shutdownReg = PCL_SHUTDOWN_TYPE_FAST | PCL_SHUTDOWN_TYPE_NORMAL;
@@ -101,7 +101,8 @@ void init_benchmark(int numLoops)
void read_benchmark(int numLoops)
{
int ret = 0, i = 0;
- long duration = 0, size = 0;
+ long long duration = 0;
+ long size = 0;
struct timespec readStart, readEnd;
char key[128] = { 0 };
unsigned char buffer[7168] = {0}; // 7kB