stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=12fccd1d3c51fb15a4a6d28b443573838f239dad

commit 12fccd1d3c51fb15a4a6d28b443573838f239dad
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Fri Dec 2 14:47:43 2016 +0100

    ecore_ipc: silence a maybe unitialized warning
    
    I always got this during the build:
    lib/ecore_ipc/ecore_ipc.c:537:6: warning: ‘old_mask’ may be used 
uninitialized in this function
    [-Wmaybe-uninitialized]
    
    Looking at the code it really is a false positive. Gettign the mask is 
behind
    an if it is the same if condistion used before writing it. Anyway, 
silencing the
    warning here.
---
 src/lib/ecore_ipc/ecore_ipc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index 8b62435..d0cfb78 100644
--- a/src/lib/ecore_ipc/ecore_ipc.c
+++ b/src/lib/ecore_ipc/ecore_ipc.c
@@ -449,7 +449,7 @@ ecore_ipc_server_add(Ecore_Ipc_Type type, const char *name, 
int port, const void
    char *address = NULL;
    Eina_Error err;
 #ifdef EFL_NET_SERVER_UNIX_CLASS
-   mode_t old_mask, new_mask = 0;
+   mode_t old_mask = 0, new_mask = 0;
 #endif
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);

-- 


Reply via email to