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.
This commit is contained in:
Stefan Schmidt 2016-12-02 14:47:43 +01:00
parent 3a68e9554a
commit 12fccd1d3c
1 changed files with 1 additions and 1 deletions

View File

@ -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);