[PULL] Pointer barriers

Jeremy Huddleston jeremyhu at apple.com
Wed Jun 1 21:38:57 PDT 2011


Looks like a possible bug here...

cursor.c:1187:5: warning: variable 'c' is uninitialized when used here [-Wuninitialized]
    list_for_each_entry(c, &cs->barriers, entry) {
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from cursor.c:58:
../include/list.h:264:16: note: instantiated from:
    for (pos = __container_of((head)->next, pos, member);               \
               ^
cursor.c:1187:5: note: instantiated from:
    list_for_each_entry(c, &cs->barriers, entry) {
    ^                   ~
cursor.c:1187:25: note: instantiated from:
    list_for_each_entry(c, &cs->barriers, entry) {
                        ^
cursor.c:1183:5: note: variable 'c' is declared here
    struct PointerBarrierClient *c;
    ^
cursor.c:1183:35: note: add initialization to silence this warning
    struct PointerBarrierClient *c;
                                  ^
                                   = 0

On May 31, 2011, at 11:47 PM, Keith Packard wrote:

> On Tue, 31 May 2011 15:12:23 -0400, Adam Jackson <ajax at nwnk.net> wrote:
> 
>> Adam Jackson (1):
>>       fixes: Add support for pointer barriers
> 
> Merged.
>   a2e6cfc..0643c05  master -> master
> 
> -- 
> keith.packard at intel.com
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel



More information about the xorg-devel mailing list