Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 857
    • Issues 857
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 45
    • Merge requests 45
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !223

tests: Fix a -Wbad-function-cast warning in the atomic tests

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Philip Withnall requested to merge pwithnall/glib:1475-atomic-casts into master Aug 03, 2018
  • Overview 3
  • Commits 1
  • Pipelines 1
  • Changes 1

Assigning the gpointer return value from g_atomic_pointer_get() to a gsize variable was not making -Wbad-function-cast happy. Assign to an intermediate gpointer variable and then cast that instead.

Signed-off-by: Philip Withnall withnall@endlessm.com

#1475 (closed)

Closes #1475 (closed)


Untested on armel. Needs testing on the Debian builders.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 1475-atomic-casts