mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Allow open switch-enum in 5 places
This commit is contained in:
parent
3dac4c7874
commit
9470ee877d
4 changed files with 21 additions and 0 deletions
|
@ -407,6 +407,10 @@ struct curlFileTransfer : public FileTransfer
|
|||
err = Misc;
|
||||
} else {
|
||||
// Don't bother retrying on certain cURL errors either
|
||||
|
||||
// Allow selecting a subset of enum values
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wswitch-enum"
|
||||
switch (code) {
|
||||
case CURLE_FAILED_INIT:
|
||||
case CURLE_URL_MALFORMAT:
|
||||
|
@ -427,6 +431,7 @@ struct curlFileTransfer : public FileTransfer
|
|||
default: // Shut up warnings
|
||||
break;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
attempt++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue