mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
Warn on implicit switch case fallthrough
This seems to have found one actual bug in fs-sink.cc: the symlink case was falling into the regular file case, which can't possibly be intentional, right?
This commit is contained in:
parent
0b47783d0a
commit
a82aeedb5b
3 changed files with 6 additions and 1 deletions
|
@ -15,6 +15,7 @@ void copyRecursive(
|
|||
case SourceAccessor::tSymlink:
|
||||
{
|
||||
sink.createSymlink(to, accessor.readLink(from));
|
||||
break;
|
||||
}
|
||||
|
||||
case SourceAccessor::tRegular:
|
||||
|
@ -38,6 +39,7 @@ void copyRecursive(
|
|||
sink, to + "/" + name);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case SourceAccessor::tMisc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue