• Adam Jackson's avatar
    dix: Hush an almost certainly bogus warning · 6f0903dd
    Adam Jackson authored
    ../dix/getevents.c: In function ‘transformAbsolute’:
    ../dix/getevents.c:1195:28: warning: ‘oy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         struct pixman_f_vector p = {.v = {*x, *y, 1} };
    ../dix/getevents.c:1234:22: note: ‘oy’ was declared here
         double x, y, ox, oy;
    This one is truly special. Even though both ox and oy are set and read
    along the same paths, only oy is marked for this warning! Initializing
    just oy = 0.0 fixes it entirely, but let's not make a weird thing
    Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
    Acked-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
getevents.c 65.7 KB