Error compiling under clang: error: void function 'geary_app_draft_manager_construct' should not return a value
Bug Summary
Geary failed to build on OpenMandriva Cooker with Clang 11.
Your installation
- Geary version: 3.38.0
- Installation method: Compiled in ABF (automated build farm) from source for OpenMandriva
- Desktop environment: All
- Operating system and version: OpenMandriva Cooker
What happened?
When compile Geary 3.38.0.1 on Linux OpenMnadriva Cooker with Clang 11 I see this error:
src/engine/318f0fc@@geary-engine@sta/app/app-draft-manager.c:695:2: error: void function 'geary_app_draft_manager_construct' should not return a value [-Wreturn-type]
DEBUG util.py:623: g_return_val_if_fail ((cancellable == NULL) || G_TYPE_CHECK_INSTANCE_TYPE (cancellable, g_cancellable_get_type ()), NULL);
DEBUG util.py:623: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEBUG util.py:623: /usr/include/glib-2.0/glib/gmessages.h:644:9: note: expanded from macro 'g_return_val_if_fail'
DEBUG util.py:623: return (val); \
Relevant logs and/or screenshots
Full build log: https://file-store.openmandriva.org/api/v1/file_stores/9d04903f1c00806ceef4cbee722fb29bc45a1040.log?show=true
Edited by Michael Gratton