Skip to content

Fix gcc 12 warnings - #10112

Merged
thufschmitt merged 1 commit into
NixOS:masterfrom
edolstra:fix-gcc12-warnings
Feb 29, 2024
Merged

thufschmitt merged 1 commit into
NixOS:masterfrom
edolstra:fix-gcc12-warnings

Conversation

@edolstra

@edolstra edolstra commented Feb 28, 2024 •

Copy link
Copy Markdown
Member

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
@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