aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorPrince Kumar Dubey <prince.dubey@samsung.com>2017-10-13 12:11:41 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-10-13 12:11:45 -0700
commit1235459ed3cd78f6efb811295afc49668d2438a6 (patch)
tree5694c62d92bc35d5f3eaf73dabca50454fb2cb22 /src/tests
parentecore_audio: unused variables are removed to fix warning. (diff)
downloadefl-1235459ed3cd78f6efb811295afc49668d2438a6.tar.gz
efl: unused variable removed, removing local variable assignment which has no use at all.
Reviewers: raster, cedric Reviewed By: cedric Subscribers: rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5304 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eina/eina_test_lock.c4
-rw-r--r--src/tests/eina/eina_test_log.c1
-rw-r--r--src/tests/eina/eina_test_strbuf.c2
-rw-r--r--src/tests/eina/eina_test_ustr.c2
4 files changed, 3 insertions, 6 deletions
diff --git a/src/tests/eina/eina_test_lock.c b/src/tests/eina/eina_test_lock.c
index c0b45bd885..6636706288 100644
--- a/src/tests/eina/eina_test_lock.c
+++ b/src/tests/eina/eina_test_lock.c
@@ -137,12 +137,12 @@ _eina_test_tls_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
int *ptr;
ptr = eina_tls_get(key);
- fail_if(eina_tls_get(key) != NULL);
+ fail_if(ptr != NULL);
fail_if(!eina_tls_set(key, _eina_test_tls_alloc(24)));
ptr = eina_tls_get(key);
- fail_if(eina_tls_get(key) == NULL);
+ fail_if(ptr == NULL);
fail_if(*ptr != 24);
return NULL;
diff --git a/src/tests/eina/eina_test_log.c b/src/tests/eina/eina_test_log.c
index cc20bfc98b..44bea28816 100644
--- a/src/tests/eina/eina_test_log.c
+++ b/src/tests/eina/eina_test_log.c
@@ -376,7 +376,6 @@ END_TEST
START_TEST(eina_log_customize)
{
- struct log_ctx ctx;
int d;
/* please don't define EINA_LOG_LEVELS for it */
diff --git a/src/tests/eina/eina_test_strbuf.c b/src/tests/eina/eina_test_strbuf.c
index b4e1cd1d02..85176ccf67 100644
--- a/src/tests/eina/eina_test_strbuf.c
+++ b/src/tests/eina/eina_test_strbuf.c
@@ -390,8 +390,6 @@ START_TEST(strbuf_realloc)
eina_strbuf_remove(buf, 0, 0 + 32);
fail_if(eina_strbuf_length_get(buf) != sz - 32);
- sz -= 32;
-
eina_strbuf_free(buf);
diff --git a/src/tests/eina/eina_test_ustr.c b/src/tests/eina/eina_test_ustr.c
index eba07e37e2..5bf7bbee8f 100644
--- a/src/tests/eina/eina_test_ustr.c
+++ b/src/tests/eina/eina_test_ustr.c
@@ -161,7 +161,7 @@ START_TEST(eina_unicode_strncpy_test)
fail_if(buf[9] != 0);
buf[0] = '7';
- rv = eina_unicode_strncpy(buf, STR1, 0);
+ eina_unicode_strncpy(buf, STR1, 0);
fail_if(buf[0] != '7');
#ifdef EINA_SAFETY_CHECKS