Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gcc 12 warnings #10112

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Fix gcc 12 warnings #10112

merged 1 commit into from
Feb 29, 2024

Conversation

edolstra
Copy link
Member

@edolstra edolstra commented Feb 28, 2024

Motivation

Unfortunately gcc 12 isn't smart enough to see that switch statements over FileSerialisationMethod etc. are exhaustive, so it complains about uninitialized variables.

Note: we could switch to -std=c++23 and use std::unreachable() instead of assert(false).

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Feb 28, 2024
@thufschmitt thufschmitt merged commit bf48501 into NixOS:master Feb 29, 2024
9 checks passed
@edolstra edolstra deleted the fix-gcc12-warnings branch March 1, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
store Issues and pull requests concerning the Nix store
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants