aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/fix_Werror_conversion.patch
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-04-19 01:45:38 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-04-19 01:45:38 +0900
commit125df8d2489848a6d6a53dcda99726482899abde (patch)
treea3b594b19bba5f3af3d4366b7c53825fc617d6c8 /meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/fix_Werror_conversion.patch
parent108fdbb828b3b5ef3fe29b3ed9f93bd820cee6d8 (diff)
downloadmeta-ivi-125df8d2489848a6d6a53dcda99726482899abde.tar.gz
meta-ivi-125df8d2489848a6d6a53dcda99726482899abde.tar.bz2
meta-ivi-125df8d2489848a6d6a53dcda99726482899abde.zip
persistence-client-library: fix compile error
| 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>
Diffstat (limited to 'meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/fix_Werror_conversion.patch')
-rw-r--r--meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/fix_Werror_conversion.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/fix_Werror_conversion.patch b/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/fix_Werror_conversion.patch
new file mode 100644
index 0000000..eb00da3
--- /dev/null
+++ b/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/fix_Werror_conversion.patch
@@ -0,0 +1,35 @@
+diff --git a/test/persistence_client_library_benchmark.c b/test/persistence_client_library_benchmark.c
+index 3c48469..10029d9 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
+@@ -166,7 +167,8 @@ void read_benchmark(int numLoops)
+ void write_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