From 166c76146dfe4f9e39d9210cdbab86c952e30fb3 Mon Sep 17 00:00:00 2001 From: Cedric BAIL 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. SVN revision: 38996 --- legacy/evas/m4/ac_attribute.m4 | 3 ++- legacy/evas/src/lib/canvas/evas_async_events.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/legacy/evas/m4/ac_attribute.m4 b/legacy/evas/m4/ac_attribute.m4 index 3926d23d56..04bf5f2a49 100644 --- a/legacy/evas/m4/ac_attribute.m4 +++ b/legacy/evas/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/legacy/evas/src/lib/canvas/evas_async_events.c b/legacy/evas/src/lib/canvas/evas_async_events.c index bba70721f5..0b92e482b1 100644 --- a/legacy/evas/src/lib/canvas/evas_async_events.c +++ b/legacy/evas/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