• Rhys Kidd's avatar
    mesa/gbm: Resolve GCC sign-compare warning. · 1d8c6949
    Rhys Kidd authored
    mesa/src/gbm/main/backend.c: In function 'find_backend':
    mesa/src/gbm/main/backend.c:70:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (i = 0; i < ARRAY_SIZE(backends); ++i) {
                      ^
    mesa/src/gbm/main/backend.c: In function '_gbm_create_device':
    mesa/src/gbm/main/backend.c:95:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (i = 0; i < ARRAY_SIZE(backends) && dev == NULL; ++i) {
                      ^
    Signed-off-by: Rhys Kidd's avatarRhys Kidd <rhyskidd@gmail.com>
    Reviewed-by: Thomas Helland's avatarThomas Helland <thomashelland90@gmail.com>
    1d8c6949
backend.c 2.63 KB