mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
39d2d3a288
Some compiler bump or another provoked a new uninitialized-variable warning, but the logic in that function precludes the actual uninitialized read (there's an assert before the read). I could use a #pragma diagnostic or something but explicitly initializing is not so bad especially as it's just test code.
21 lines
679 B
Diff
21 lines
679 B
Diff
diff --git a/test/Glacier2/dynamicFiltering/TestControllerI.h b/test/Glacier2/dynamicFiltering/TestControllerI.h
|
|
index 7e21639..1279200 100644
|
|
--- a/test/Glacier2/dynamicFiltering/TestControllerI.h
|
|
+++ b/test/Glacier2/dynamicFiltering/TestControllerI.h
|
|
@@ -21,13 +21,12 @@ struct SessionTuple
|
|
{
|
|
Glacier2::SessionPrx session;
|
|
Glacier2::SessionControlPrx sessionControl;
|
|
- bool configured;
|
|
+ bool configured = false;
|
|
|
|
SessionTuple() {}
|
|
SessionTuple(Glacier2::SessionPrx s, Glacier2::SessionControlPrx control):
|
|
session(s),
|
|
- sessionControl(control),
|
|
- configured(false)
|
|
+ sessionControl(control)
|
|
{}
|
|
|
|
SessionTuple&
|