Skip to content
GitLab
Projects Groups 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
    • Contributors
    • Graph
    • Compare
  • Issues 861
    • Issues 861
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 56
    • Merge requests 56
  • 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
  • !3071

Draft: build: Explicitly disable -Wmissing-field-initializers

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Simon McVittie requested to merge wip/smcv/warnings into main Nov 14, 2022
  • Overview 3
  • Commits 1
  • Pipelines 1
  • Changes 1

This is on by default at -Werror level in the macOS CI build, causing the build to fail. We do not consider missing field initializers to be a bug: an initializer that does not mention all fields has a well-defined meaning (remaining fields are initialized as if via .field = 0).

Resolves: #2812 (closed)


I'm hoping this will fix the macOS CI build. If it doesn't, it will at least help the macOS CI build.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wip/smcv/warnings