zeroc-ice-36: fix
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.
This commit is contained in:
@@ -34,6 +34,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "17j5r7gsa3izrm7zln4mrp7l16h532gvmpas0kzglybicbiz7d56";
|
||||
stripLen = 1;
|
||||
})
|
||||
# Fixes compilation warning about uninitialied variables (in test code)
|
||||
./uninitialized-variable-warning.patch
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
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&
|
||||
Reference in New Issue
Block a user