* evas/m4/ac_attribute.m4,
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 11 Feb 2009 17:56:03 +0000 (17:56 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 11 Feb 2009 17:56:03 +0000 (17:56 +0000)
* evas/src/lib/canvas/evas_async_events.c: Fix long standing warning from valgrind.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@38996 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

m4/ac_attribute.m4
src/lib/canvas/evas_async_events.c

index 3926d23..04bf5f2 100644 (file)
@@ -39,8 +39,9 @@ AC_MSG_RESULT($ac_cv___attribute__)
 if test "x${ac_cv___attribute__}" = "xyes" ; then
    AC_DEFINE([HAVE___ATTRIBUTE__], [1], [Define to 1 if your compiler has __attribute__])
    AC_DEFINE([__UNUSED__], [__attribute__((unused))], [Macro declaring a function argument to be unused])
+   AC_DEFINE([__PACKED__], [__attribute__((packed))], [Macro declaring a function argument to be unused])
   else
-    AC_DEFINE([__UNUSED__], [], [Macro declaring a function argument to be unused])
+    AC_DEFINE([__PACKED__], [], [Macro declaring a function argument to be unused])
 fi
 
 ])
index bba7072..0b92e48 100644 (file)
@@ -21,7 +21,7 @@ struct _Evas_Event_Async
    void                         *event_info;
    void                        (*func)(void *target, Evas_Callback_Type type, void *event_info);
    Evas_Callback_Type    type;
-};
+} __PACKED__ ;
 
 #endif