mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
Fix warning 'catching polymorphic type by value'
This commit is contained in:
parent
3420b60b39
commit
5c95b32c46
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ void initLibUtil() {
|
|||
bool caught = false;
|
||||
try {
|
||||
throwExceptionSelfCheck();
|
||||
} catch (nix::Error _e) {
|
||||
} catch (const nix::Error & _e) {
|
||||
caught = true;
|
||||
}
|
||||
// This is not actually the main point of this check, but let's make sure anyway:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue