gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
718 stars 116 forks source link

incompatible pointer to integer conversion errors with 2.5.28 release build #644

Closed chenrui333 closed 3 months ago

chenrui333 commented 3 months ago

While regression build 2.5.28 release, I ran into some build failures with newer clang as below:

main.c:1218:9: error: incompatible pointer to integer conversion returning 'pthread_t' (aka 'struct _opaque_pthread_t *') from a function with result type 'unsigned int' [-Wint-conversion]
        return (tid);
               ^~~~~
main.c:1225:12: error: incompatible integer to pointer conversion initializing 'pthread_t' (aka 'struct _opaque_pthread_t *') with an expression of type 'unsigned int' [-Wint-conversion]
        pthread_t tid = id;
                  ^     ~~
2 errors generated.
chenrui333 commented 3 months ago

actually got addressed with https://github.com/gphoto/gphoto2/pull/569