raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7a7d3be1402669fe1c84c440b1125fe9b79986f8

commit 7a7d3be1402669fe1c84c440b1125fe9b79986f8
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Jul 18 08:05:25 2014 +0900

    eina - fix eina-module warning with global + stop using gcc extn for file
---
 src/lib/eina/eina_module.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_module.c b/src/lib/eina/eina_module.c
index 2c92603..2be0a40 100644
--- a/src/lib/eina/eina_module.c
+++ b/src/lib/eina/eina_module.c
@@ -95,7 +95,7 @@ struct _Eina_Module
 
    Eina_Bool global;
 
-   const char file[];
+   const char file[1];
 };
 
 typedef struct _Dir_List_Get_Cb_Data
@@ -273,6 +273,7 @@ EAPI Eina_Module *eina_module_new(const char *file)
    memcpy((char *)m->file, file, len + 1);
    m->ref = 0;
    m->handle = NULL;
+   m->global = EINA_FALSE;
    DBG("m=%p, file=%s", m, file);
 
    return m;

-- 


Reply via email to