• Chris Wilson's avatar
    igt/syncobj: Tidy ye olde compiler warnings · aaafccbc
    Chris Wilson authored
    syncobj_basic.c: In function ‘__real_main225’:
    syncobj_basic.c:202:26: warning: ‘fd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    syncobj_basic.c:227:6: note: ‘fd’ was declared here
    syncobj_wait.c: In function ‘test_wait_complex’:
    syncobj_wait.c:702:3: warning: ‘first_signaled’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    syncobj_wait.c: In function ‘__real_main758’:
    syncobj_wait.c:492:24: warning: ‘timeline’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    syncobj_wait.c:473:15: note: ‘timeline’ was declared here
    syncobj_wait.c:326:23: warning: ‘timeline’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    syncobj_wait.c:320:6: note: ‘timeline’ was declared here
    syncobj_wait.c:406:31: warning: ‘fd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    syncobj_wait.c:760:6: note: ‘fd’ was declared here
    Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Joonas Lahtinen's avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
    aaafccbc
syncobj_basic.c 5.17 KB