mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 15:17:18 +02:00
parseDerivation(): Fix warning about uninitialized 'version' variable
This commit is contained in:
parent
e9a857e418
commit
55dd1244d2
1 changed files with 4 additions and 1 deletions
|
@ -352,7 +352,7 @@ Derivation parseDerivation(
|
||||||
expect(str, "erive(");
|
expect(str, "erive(");
|
||||||
version = DerivationATermVersion::Traditional;
|
version = DerivationATermVersion::Traditional;
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r': {
|
||||||
expect(str, "rvWithVersion(");
|
expect(str, "rvWithVersion(");
|
||||||
auto versionS = parseString(str);
|
auto versionS = parseString(str);
|
||||||
if (versionS == "xp-dyn-drv") {
|
if (versionS == "xp-dyn-drv") {
|
||||||
|
@ -365,6 +365,9 @@ Derivation parseDerivation(
|
||||||
expect(str, ",");
|
expect(str, ",");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
throw Error("derivation does not start with 'Derive' or 'DrvWithVersion'");
|
||||||
|
}
|
||||||
|
|
||||||
/* Parse the list of outputs. */
|
/* Parse the list of outputs. */
|
||||||
expect(str, "[");
|
expect(str, "[");
|
||||||
|
|
Loading…
Add table
Reference in a new issue