yohoho pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=17f0d23e3736fad04f1888e9611d00bb4b4b581e

commit 17f0d23e3736fad04f1888e9611d00bb4b4b581e
Author: Yeongjong Lee <[email protected]>
Date:   Thu Feb 13 11:30:27 2020 +0900

    vg_common_json: use %zu for size_t
    
    Summary:
    Fixes a compiler warning
    ```
    ../src/static_libs/vg_common/vg_common_json.c: In function '_get_key_val':
    ../src/static_libs/vg_common/vg_common_json.c:16:34: warning: format '%ld' 
expects argument of type 'long int', but argument 4 has type 'unsigned int' 
[-Wformat=]
    ```
    
    Test Plan: ninja build
    
    Reviewers: Hermet, jsuya
    
    Reviewed By: jsuya
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D11327
---
 src/static_libs/vg_common/vg_common_json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/static_libs/vg_common/vg_common_json.c 
b/src/static_libs/vg_common/vg_common_json.c
index a8f46832b8..2092b852a5 100644
--- a/src/static_libs/vg_common/vg_common_json.c
+++ b/src/static_libs/vg_common/vg_common_json.c
@@ -13,7 +13,7 @@ static char*
 _get_key_val(void *key)
 {
    static char buf[30];
-   snprintf(buf, sizeof(buf), "%ld", (size_t) key);
+   snprintf(buf, sizeof(buf), "%zu", (size_t) key);
    return buf;
 }
 

-- 


Reply via email to