• Emmanuel Fleury's avatar
    Fixing signedness in glib/gthreadpool.c · 179dbbde
    Emmanuel Fleury authored
    glib/gthreadpool.c: In function ‘g_thread_pool_wait_for_new_pool’:
    glib/gthreadpool.c:157:46: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
           if (g_atomic_int_get (&unused_threads) >= local_max_unused_threads)
                                                  ^~
    glib/gthreadpool.c: In function ‘g_thread_pool_wakeup_and_stop_all’:
    glib/gthreadpool.c:836:17: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘int’} [-Werror=sign-compare]
       for (i = 0; i < pool->num_threads; i++)
                     ^
    179dbbde
gthreadpool.c 31.8 KB