Boxes 3.38.1 compiling with Clang 11 failing at "error: non-void function boxes_vm_configurator_get_sound_model' should return a value"
Hi.
In previous version of Boxes (3.36.X) I build it with GCC because if build with Clang then boxes crashing at launch. Now with new version of Boxes I see problems with build libhandy for Boxes 3.38.1 and thats why I switch back to Clang but with Clang handy is build fine but I see one error in Boxes:
src/25a6634@@gnome-boxes@exe/vm-configurator.c:1832:2: error: non-void function 'boxes_vm_configurator_get_sound_model' should return a value [-Wreturn-type]
DEBUG util.py:623: g_return_if_fail (model != -1);
DEBUG util.py:623: ^
DEBUG util.py:623: /usr/include/glib-2.0/glib/gmessages.h:631:9: note: expanded from macro 'g_return_if_fail'
DEBUG util.py:623: return; \
Full build log is available here: https://file-store.openmandriva.org/api/v1/file_stores/f107a820e204205236d68821ab389ef02845f0aa.log?show=true
- System: OpenMandirva Cooker
- Compiler: LLVM Clang 11
- GTK: 3.24.23
Not sure, how to fix it but it is possible that even if this building issue will be fixed, the package can start again crashing during startup. But that's what I'll worry about later.
Edited by Damian Marcin Szymański