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 46
    • Merge requests 46
  • 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
  • !3343

{glib,gio}/cxx: Use nullptr to fix missing sentinel on musl

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed A G requested to merge oreo639/glib:cxxmusl into main Mar 22, 2023
  • Overview 8
  • Commits 1
  • Pipelines 2
  • Changes 2

Fixes: ../gio/tests/cxx.cpp: In function 'int main(int, char**)': ../gio/tests/cxx.cpp:62:15: error: missing sentinel in function call [-Werror=format=] 62 | g_test_init (&argc, &argv, NULL); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~

This change was originally PR'd in !2439 (merged) However a different one was PR'd in !3294 (merged)

This caused build failures in Void Linux on musl: https://github.com/void-linux/void-packages/actions/runs/4485990212/jobs/7888064519

Changing NULL to nullptr inside #if G_CXX_STD_CHECK_VERSION (11) does fix this issue for me.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cxxmusl