On Thu, 12 Feb 2009 09:08:09 +0100 Cedric BAIL <cedric.b...@free.fr> said:
> On Wed, Feb 11, 2009 at 10:45 PM, The Rasterman Carsten Haitzler > <ras...@rasterman.com> wrote: > > On Wed, 11 Feb 2009 09:56:04 -0800 "Enlightenment SVN" > > <no-re...@enlightenment.org> said: > > > > and what valgrind complaint is this... that it complains if a struct is NOT > > packed? this is highly suspicious... :) > > > > Valgrind complaint that the memory passed to write is not initialized, > and that's true if the structure is not packed on a 64bits arch where > pointer are 64bits, int 32bits and where the compiler want to align > every thing on 64bits. > > This uninitialized part of the structure is not used by both part of > the pipe, so it doesn't influence anything real. But it's annoying to > have some warning in valgrind and to know that we manipulate garbage > over the pipe for nothing. technically you should memset() the entire sizeof(struct) to 0 first to ensure it is 0. as such this will mean that no structs packed into a buffer in the pipe are aligned to 64bit addresses - and that technically is "bad" :) so i's say the solution is to memset first... not pack :) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel