From 81ee8223bf0c0bbe3b1c2c6a3d63d70909b07400 Mon Sep 17 00:00:00 2001 From: cedric Date: Wed, 11 Feb 2009 17:56:03 +0000 Subject: [PATCH] * evas/m4/ac_attribute.m4, * 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 | 3 ++- src/lib/canvas/evas_async_events.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/m4/ac_attribute.m4 b/m4/ac_attribute.m4 index 3926d23..04bf5f2 100644 --- a/m4/ac_attribute.m4 +++ b/m4/ac_attribute.m4 @@ -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 ]) diff --git a/src/lib/canvas/evas_async_events.c b/src/lib/canvas/evas_async_events.c index bba7072..0b92e48 100644 --- a/src/lib/canvas/evas_async_events.c +++ b/src/lib/canvas/evas_async_events.c @@ -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 -- 2.7.4