efl: unused variable removed, removing local variable assignment which has no use...
authorPrince Kumar Dubey <prince.dubey@samsung.com>
Fri, 13 Oct 2017 19:11:41 +0000 (12:11 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Fri, 13 Oct 2017 19:11:45 +0000 (12:11 -0700)
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>
src/lib/evil/evil_stdlib.c
src/tests/eina/eina_test_lock.c
src/tests/eina/eina_test_log.c
src/tests/eina/eina_test_strbuf.c
src/tests/eina/eina_test_ustr.c

index 56d0ede..dbb9779 100644 (file)
@@ -119,7 +119,6 @@ _mkstemp(char *suffix, int val)
    suffix[4] = lookup[v % 62];
    v /= 62;
    suffix[5] = lookup[v % 62];
-   v /= 62;
 
    val += 7777;
 
index c0b45bd..6636706 100644 (file)
@@ -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;
index cc20bfc..44bea28 100644 (file)
@@ -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 */
index b4e1cd1..85176cc 100644 (file)
@@ -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);
 
index eba07e3..5bf7bbe 100644 (file)
@@ -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