Re: [PATCH] gatomic.h: added missing "volatile" modifier to internal casts



On Thu, 2010-04-15 at 11:06 +0200, Max Kellermann wrote:
> These macros expect pointers decorated with the "volatile" modifier,
> but internally, they cast them to "void*", dropping the "volatile"
> modifier.  gcc4.4 doesn't like that, and emits a warning:
> 
>  "cast discards qualifiers from pointer target type"

you should open a bug and attach your patch to that bug:

  http://bugzilla.gnome.org/enter_bug.cgi?product=glib

otherwise patches sent to a mailing list usually get lost.

ciao,
 Emmanuele.

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]