[Mono-devel-list] File watcher warnings patch

Nick Drochak ndrochak at gol.com
Mon Jan 26 09:27:59 EST 2004


Hi.

Here's a simple patch[1] to eliminate a couple of warnings during the build
of System.dll.

OK to commit?

Nick D.

[1]
Index: FAMWatcher.cs
===================================================================
RCS file: /cvs/public/mcs/class/System/System.IO/FAMWatcher.cs,v
retrieving revision 1.2
diff -u -r1.2 FAMWatcher.cs
--- FAMWatcher.cs       21 Jan 2004 21:54:45 -0000      1.2
+++ FAMWatcher.cs       26 Jan 2004 14:08:02 -0000
@@ -143,7 +143,6 @@

                static void StopMonitoringDirectory (FAMData data)
                {
-                       FAMRequest fr;
                        if (FAMCancelMonitor (ref conn, ref data.Request) ==
-1)
                                throw new Win32Exception ();
                }
Index: FileSystemWatcher.cs
===================================================================
RCS file: /cvs/public/mcs/class/System/System.IO/FileSystemWatcher.cs,v
retrieving revision 1.10
diff -u -r1.10 FileSystemWatcher.cs
--- FileSystemWatcher.cs        22 Jan 2004 01:38:13 -0000      1.10
+++ FileSystemWatcher.cs        26 Jan 2004 14:08:02 -0000
@@ -30,7 +30,6 @@
                string path;
                string fullpath;
                ISynchronizeInvoke synchronizingObject;
-               bool disposed;
                WaitForChangedResult lastData;
                bool waiting;
                SearchPattern2 pattern;




More information about the Mono-devel-list mailing list