Boxes: 43.0: on Clang 15 error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'gboolean
When compile Boxes 43.0 with GCC everything is fine but when compiling with latest Clang 15.0.2 I see this build error:
DEBUG util.py:446: src/gnome-boxes.p/libvirt-broker.c:1045:2: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'gboolean' (aka 'int') [-Wint-conversion]
DEBUG util.py:446: g_return_val_if_fail (_data_->_tmp0_ != NULL, NULL);
DEBUG util.py:446: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEBUG util.py:446: /usr/include/glib-2.0/glib/gmessages.h:660:16: note: expanded from macro 'g_return_val_if_fail'
DEBUG util.py:446: return (val); \
DEBUG util.py:446: ^~~~~
DEBUG util.py:446: 1 error generated.
DEBUG util.py:446: src/gnome-boxes.p/media-manager.c:1396:2: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'gboolean' (aka 'int') [-Wint-conversion]
DEBUG util.py:446: g_return_val_if_fail (_data_->_tmp51_ != NULL, NULL);
DEBUG util.py:446: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEBUG util.py:446: /usr/include/glib-2.0/glib/gmessages.h:660:16: note: expanded from macro 'g_return_val_if_fail'
DEBUG util.py:446: return (val); \
DEBUG util.py:446: ^~~~~
DEBUG util.py:446: 1 error generated.
Full build log: https://file-store.openmandriva.org/api/v1/file_stores/8020f4e3a46acceb24a9471a8a2e2ae92f9e312b.log?show=true
Details:
- OS: OpenMandriv Cooker
- Compiler: LLVM/Clang 15.0.2
- Linker: LLD
- Boxes: 43.0
Edited by Damian Marcin Szymański