Clang 15: non-void function 'contacts_birthday_chunk_constructor' should return a value
Affected version
- GNOME Contacts version: 43.0
- Application provider: distribution
- Related info:
Build failed on OpenMandriva Cooker if compile with Clang 15.0.2. Compilation with GCC works fine.
src/core/libcontactscore.a.p/contacts-birthday-chunk.c:344:3: error: non-void function 'contacts_birthday_chunk_constructor' should return a value [-Wreturn-type]
DEBUG util.py:446: g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, FOLKS_TYPE_BIRTHDAY_DETAILS));
DEBUG util.py:446: ^
DEBUG util.py:446: /usr/include/glib-2.0/glib/gmessages.h:647:9: note: expanded from macro 'g_return_if_fail'
DEBUG util.py:446: return; \
DEBUG util.py:446: ^
DEBUG util.py:446: 1 error generated.
and few others, similar.
Full build log: https://file-store.openmandriva.org/api/v1/file_stores/aa5c5e2c393bc587ceaa14647682bc2a2309c989.log?show=true
Steps to reproduce
- Install compile LLVM/Clang 15.0.2
- Compile gnome-contacts 43.0 with Clang 15
- See build error
Current behavior
Build failed if compiled with Clang 15.0. GCC workks.
Expected behavior
Compilation works.