Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • L libgdata
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • libgdata
  • Issues
  • #32
Closed
Open
Issue created Jul 30, 2019 by Emmanuele Bassi@ebassi👣Developer

Build failure on Continuous

Commit 7f65364e uses g_autolist(GoaObject) but:

  • gdbus-codegen does not generate G_DEFINE_AUTOPTR_* gunk for GoaObject (it's an interface)
  • you don't control how the GDBus code in gnome-online-accounts is generated, so you can't depend on it as an API because different versions of gdbus-codegen can generate different API

Which ends up breaking the build in Continuous:

../demos/docs-property/docs-property.c: In function ‘main’:
../demos/docs-property/docs-property.c:50:13: error: unknown type name ‘GoaObject_listautoptr’
  g_autolist(GoaObject) accounts = NULL;
             ^
/usr/include/glib-2.0/glib/gmacros.h:1031:48: note: in definition of macro ‘_GLIB_AUTOPTR_LIST_TYPENAME’
 #define _GLIB_AUTOPTR_LIST_TYPENAME(TypeName)  TypeName##_listautoptr
                                                ^
../demos/docs-property/docs-property.c:50:2: note: in expansion of macro ‘g_autolist’
  g_autolist(GoaObject) accounts = NULL;
  ^
../demos/docs-property/docs-property.c:50:2: error: cleanup argument not a function
../demos/docs-property/docs-property.c:50:35: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  g_autolist(GoaObject) accounts = NULL;
                                   ^
../demos/docs-property/docs-property.c:63:11: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  accounts = goa_client_get_accounts (client);
           ^
../demos/docs-property/docs-property.c:64:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  for (l = accounts; l != NULL; l = l->next) {
         ^
Assignee
Assign to
Time tracking