[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / class / System.Core / System.IO.Pipes / PipeStream.cs
index 8dea76a2cacf96b9ff3010364d82008dbf7e31dd..d60b71b1f5b7b29dc18f41994410c17e2e07653a 100644 (file)
@@ -133,10 +133,13 @@ namespace System.IO.Pipes
                        get {
                                if (!IsConnected)
                                        throw new InvalidOperationException ("Pipe is not connected");
-                               if (stream == null)
+                               if (stream == null) {
+#pragma warning disable 618
                                        stream = new FileStream (handle.DangerousGetHandle (),
                                                                 CanRead ? (CanWrite ? FileAccess.ReadWrite : FileAccess.Read)
                                                                         : FileAccess.Write, true, buffer_size, IsAsync);
+#pragma warning restore 618                                    
+                               }
                                return stream;
                        }
                        set { stream = value; }