diff options
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.patch | 35 |
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 |