Clean up few more warnings
authorMarek Safar <marek.safar@gmail.com>
Fri, 15 Oct 2010 14:07:08 +0000 (15:07 +0100)
committerMarek Safar <marek.safar@gmail.com>
Fri, 15 Oct 2010 14:20:25 +0000 (15:20 +0100)
46 files changed:
mcs/build/common/MonoTODOAttribute.cs
mcs/class/I18N/CJK/CP932.cs
mcs/class/I18N/Common/Handlers.cs
mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
mcs/class/Mono.Simd/Mono.Simd/VectorOperations.cs
mcs/class/RabbitMQ.Client/src/client/AssemblyInfo.cs
mcs/class/System.Core/System.Collections.Generic/HashSet.cs
mcs/class/System.Core/System.IO.MemoryMappedFiles/MemoryMappedFile.cs
mcs/class/System.Core/System.IO.MemoryMappedFiles/MemoryMappedViewAccessor.cs
mcs/class/System.Core/System.IO.Pipes/PipeUnix.cs
mcs/class/System.Core/System.Linq.Expressions/ConstantExpression.cs
mcs/class/System.Core/System.Linq.Parallel/OrderingEnumerator.cs
mcs/class/System.Security/System.Security.Cryptography.Xml/EncryptedReference.cs
mcs/class/System.Security/System.Security.Cryptography.Xml/EncryptionProperty.cs
mcs/class/System.ServiceModel.Routing/System.ServiceModel.Routing/RoutingService.cs
mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs
mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs
mcs/class/System.Web/System.Web.Caching/OutputCacheModule.cs
mcs/class/System.Web/System.Web.Compilation/BuildManager.cs
mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
mcs/class/System.Web/System.Web.UI.WebControls/BaseMenuRenderer.cs
mcs/class/System.Web/System.Web.UI.WebControls/DataKey.cs
mcs/class/System.Web/System.Web.UI.WebControls/ImageMap.cs
mcs/class/System.Web/System.Web.UI.WebControls/MenuListRenderer.cs
mcs/class/System.Web/System.Web.UI.WebControls/TreeView.cs
mcs/class/System.Web/System.Web.UI/Control.cs
mcs/class/System.Web/System.Web.UI/Page.cs
mcs/class/System.Web/System.Web.UI/StaticPartialCachingControl.cs
mcs/class/System.Web/System.Web.Util/MachineKeySectionUtils.cs
mcs/class/System.Web/System.Web.Util/RequestValidator.cs
mcs/class/System.Web/System.Web/HttpResponseHeader.cs
mcs/class/System.Xaml/System.Xaml.Schema/XamlMemberInvoker.cs
mcs/class/System.Xaml/System.Xaml.dll.sources
mcs/class/System.Xaml/System.Xaml/XamlObjectReader.cs
mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs
mcs/class/System.Xaml/System.Xaml/XamlReader.cs
mcs/class/System.Xaml/System.Xaml/XamlType.cs
mcs/class/System.Xaml/System.Xaml/XamlXmlReader.cs
mcs/class/System.Xaml/System.Xaml/XamlXmlWriter.cs
mcs/class/System/System.Net.Sockets/Socket_2_1.cs
mcs/class/System/System.Net/HttpConnection.cs
mcs/class/System/System.Net/HttpListenerRequest.cs
mcs/class/System/System.Net/WebClient.cs
mcs/class/System/System.Text.RegularExpressions/parser.cs
mcs/class/System/System/Uri.cs
mcs/mcs/cs-parser.jay

index ca23aa7eef195ff74df9a7a5b5de97add67ded71..33bf6950260464f2ec97d0da0b8f6c13dcd899cd 100644 (file)
@@ -33,7 +33,7 @@
 //
 
 namespace System {
-       
+#pragma warning disable 436
        [AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
        internal class MonoTODOAttribute : Attribute {
 
@@ -97,4 +97,5 @@ namespace System {
                {
                }
        }
+#pragma warning restore 436    
 }
index e5f81aa7ca87ae0c1983a976cc58f6da74db347c..7d3f2ce1a02ea2a3f7fdd30d4296f7337ecc68ea 100644 (file)
@@ -447,7 +447,7 @@ namespace I18N.CJK
        // Decoder that handles a rolling Shift-JIS state.
        sealed class CP932Decoder : DbcsEncoding.DbcsDecoder
        {
-               private JISConvert convert;
+               private new JISConvert convert;
                private int last_byte_count;
                private int last_byte_chars;
 
index 0c74d6307288041fd0ef19c705404bb2e1b7bce2..5d9c61a1f0c03f8749aef319ce145db0f361e29d 100644 (file)
@@ -26,7 +26,7 @@ namespace I18N.Common
 {
 
 using System;
-using System.Collections;
+using System.Collections.Generic;
 
 // This class provides an internal list of handlers, for runtime
 // engines that do not implement the altered "GetFile" semantics.
@@ -210,19 +210,20 @@ public sealed class Handlers
         "I18N.West.ENCibm865"
     };
        
-       static Hashtable aliases;
+       static Dictionary<string, string> aliases;
        public static string GetAlias (string name)
        {
                if (aliases == null)
                        BuildHash ();
 
-               return aliases [name] as string;
+               string v;
+               aliases.TryGetValue (name, out v);
+               return v;
        }
 
        static void BuildHash ()
        {
-               aliases = new Hashtable (new CaseInsensitiveHashCodeProvider (),
-                                        new CaseInsensitiveComparer ());
+               aliases = new Dictionary<string, string> (StringComparer.OrdinalIgnoreCase);
 
                aliases.Add ("arabic", "iso_8859_6");
                aliases.Add ("csISOLatinArabic", "iso_8859_6");
index 9edf9d3f650f980defb5a5f3734ff4b446e59618..a95c5ee670991e0508aefb0f7fda765e694d9e2f 100644 (file)
@@ -1143,6 +1143,7 @@ namespace Mono.Unix.Native {
        }
 
        [Flags][Map]
+       [CLSCompliant (false)]
        public enum EpollEvents : uint {
                EPOLLIN = 0x001,
                EPOLLPRI = 0x002,
@@ -1166,6 +1167,7 @@ namespace Mono.Unix.Native {
        }
 
        [StructLayout (LayoutKind.Explicit, Size=12, Pack=1)]
+       [CLSCompliant (false)]
        public struct EpollEvent {
                [FieldOffset (0)]
                public EpollEvents events;
index 19ca312a48c4ea0998dd5364fa243193463b1d55..5111c15e4470931629a9703d43929cc4b1f61cad 100644 (file)
@@ -61,6 +61,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector4ui ArithmeticRightShift (this Vector4ui v1, int amount)
                {
                        Vector4ui res = new Vector4ui ();
@@ -72,6 +73,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us ArithmeticRightShift (this Vector8us va, int amount)
                {
                        Vector8us res = new Vector8us ();
@@ -111,6 +113,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe int ExtractByteMask (this Vector16sb va) {
                        int res = 0;
                        sbyte *a = (sbyte*)&va;
@@ -143,6 +146,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us AddWithSaturation (this Vector8us va, Vector8us vb) {
                        Vector8us res = new Vector8us ();
                        ushort *a = &va.v0;
@@ -154,6 +158,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb AddWithSaturation (this Vector16sb va, Vector16sb vb) {
                        Vector16sb res = new Vector16sb ();
                        sbyte *a = &va.v0;
@@ -187,6 +192,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us SubtractWithSaturation (this Vector8us va, Vector8us vb) {
                        Vector8us res = new Vector8us ();
                        ushort *a = &va.v0;
@@ -198,6 +204,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb SubtractWithSaturation (this Vector16sb va, Vector16sb vb) {
                        Vector16sb res = new Vector16sb ();
                        sbyte *a = &va.v0;
@@ -231,6 +238,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us MultiplyStoreHigh (this Vector8us va, Vector8us vb) {
                        Vector8us res = new Vector8us ();
                        ushort *a = &va.v0;
@@ -293,6 +301,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us Average (this Vector8us va, Vector8us vb) {
                        Vector8us res = new Vector8us ();
                        ushort *a = &va.v0;
@@ -337,6 +346,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE41)]
+               [CLSCompliant (false)]
                public static Vector4ui Max (this Vector4ui v1, Vector4ui v2)
                {
                        return new Vector4ui (System.Math.Max (v1.x, v2.x), System.Math.Max (v1.y, v2.y), System.Math.Max (v1.z, v2.z), System.Math.Max (v1.w, v2.w));
@@ -354,6 +364,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE41)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us Max (this Vector8us va, Vector8us vb) {
                        Vector8us res = new Vector8us ();
                        ushort *a = &va.v0;
@@ -374,6 +385,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE41)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb Max (this Vector16sb va, Vector16sb vb) {
                        Vector16sb res = new Vector16sb ();
                        sbyte *a = &va.v0;
@@ -409,6 +421,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE41)]
+               [CLSCompliant (false)]
                public static Vector4ui Min (this Vector4ui v1, Vector4ui v2)
                {
                        return new Vector4ui (System.Math.Min (v1.x, v2.x), System.Math.Min (v1.y, v2.y), System.Math.Min (v1.z, v2.z), System.Math.Min (v1.w, v2.w));
@@ -426,6 +439,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE41)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us Min (this Vector8us va, Vector8us vb) {
                        Vector8us res = new Vector8us ();
                        ushort *a = &va.v0;
@@ -437,6 +451,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE41)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb Min (this Vector16sb va, Vector16sb vb) {
                        Vector16sb res = new Vector16sb ();
                        sbyte *a = &va.v0;
@@ -529,6 +544,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE41)]
+               [CLSCompliant (false)]
                public static Vector2ul CompareEqual (this Vector2ul v1, Vector2ul v2)
                {
                        return new Vector2ul ((ulong)(v1.x ==  v2.x ? -1 : 0), (ulong)(v1.y ==  v2.y ? -1 : 0));
@@ -541,6 +557,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static Vector4ui CompareEqual (this Vector4ui v1, Vector4ui v2)
                {
                        return new Vector4ui ((uint)(v1.x ==  v2.x ? -1 : 0), (uint)(v1.y ==  v2.y ? -1 : 0), (uint)(v1.z ==  v2.z ? -1 : 0), (uint)(v1.w ==  v2.w ? -1 : 0));
@@ -558,6 +575,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us CompareEqual (this Vector8us va, Vector8us vb) {
                        Vector8us res = new Vector8us ();
                        ushort *a = &va.v0;
@@ -569,6 +587,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb CompareEqual (this Vector16sb va, Vector16sb vb) {
                        Vector16sb res = new Vector16sb ();
                        sbyte *a = &va.v0;
@@ -662,6 +681,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb CompareGreaterThan (this Vector16sb va, Vector16sb vb) {
                        Vector16sb res = new Vector16sb ();
                        sbyte *a = &va.v0;
@@ -844,6 +864,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static Vector2ul UnpackLow (this Vector2ul v1, Vector2ul v2)
                {
                        return new Vector2ul (v1.x, v2.x);
@@ -856,6 +877,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static Vector4ui UnpackLow (this Vector4ui v1, Vector4ui v2)
                {
                        return new Vector4ui (v1.x, v2.x, v1.y, v2.y);
@@ -868,12 +890,14 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us UnpackLow (this Vector8us va, Vector8us vb)
                {
                        return new Vector8us (va.v0, vb.v0, va.v1, vb.v1, va.v2, vb.v2, va.v3, vb.v3);
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb UnpackLow (this Vector16sb va, Vector16sb vb)
                {
                        return new Vector16sb (va.v0, vb.v0, va.v1, vb.v1, va.v2, vb.v2, va.v3, vb.v3, va.v4, vb.v4, va.v5, vb.v5, va.v6, vb.v6, va.v7, vb.v7);
@@ -892,6 +916,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static Vector2ul UnpackHigh (this Vector2ul v1, Vector2ul v2)
                {
                        return new Vector2ul (v1.y, v2.y);
@@ -904,6 +929,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static Vector4ui UnpackHigh (this Vector4ui v1, Vector4ui v2)
                {
                        return new Vector4ui (v1.z, v2.z, v1.w, v2.w);
@@ -916,12 +942,14 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us UnpackHigh (this Vector8us va, Vector8us vb)
                {
                        return new Vector8us (va.v4, vb.v4, va.v5, vb.v5, va.v6, vb.v6, va.v7, vb.v7);
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb UnpackHigh (this Vector16sb va, Vector16sb vb)
                {
                        return new Vector16sb (va.v8, vb.v8, va.v9, vb.v9, va.v10, vb.v10, va.v11, vb.v11, va.v12, vb.v12, va.v13, vb.v13, va.v14, vb.v14, va.v15, vb.v15);
@@ -950,6 +978,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector4ui Shuffle (this Vector4ui v1, ShuffleSel sel)
                {
                        uint *ptr = (uint*)&v1;
@@ -966,6 +995,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us ShuffleHigh (this Vector8us va, ShuffleSel sel)
                {
                        ushort *ptr = ((ushort*)&va) + 4;
@@ -982,6 +1012,7 @@ namespace Mono.Simd
                }
 
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us ShuffleLow (this Vector8us va, ShuffleSel sel)
                {
                        ushort *ptr = ((ushort*)&va);
@@ -1046,6 +1077,7 @@ namespace Mono.Simd
 
                /* This function performs a packusdw, which treats the source as a signed value */
                [Acceleration (AccelMode.SSE41)]
+               [CLSCompliant (false)]
                public static unsafe Vector8us SignedPackWithUnsignedSaturation (this Vector4ui va, Vector4ui vb) {
                        Vector8us res = new Vector8us ();
                        int *a = (int*)&va;
@@ -1060,6 +1092,7 @@ namespace Mono.Simd
 
                /*This function performs a packuswb, which treats the source as a signed value */
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector16b SignedPackWithUnsignedSaturation (this Vector8us va, Vector8us vb) {
                        Vector16b res = new Vector16b ();
                        short *a = (short*)&va;
@@ -1074,6 +1107,7 @@ namespace Mono.Simd
                
                /* This function performs a packssdw, which treats the source as a signed value*/
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector8s SignedPackWithSignedSaturation (this Vector4ui va, Vector4ui vb) {
                        Vector8s res = new Vector8s ();
                        int *a = (int*)&va;
@@ -1088,6 +1122,7 @@ namespace Mono.Simd
 
                /*This function performs a packsswb, which treats the source as a signed value */
                [Acceleration (AccelMode.SSE2)]
+               [CLSCompliant (false)]
                public static unsafe Vector16sb SignedPackWithSignedSaturation (this Vector8us va, Vector8us vb) {
                        Vector16sb res = new Vector16sb ();
                        short *a = (short*)&va;
index c275f21938e65ca421eb41196faad211587fb459..e575e78b1fa92f9b9c281f01a21a6631f739dce8 100644 (file)
@@ -53,19 +53,9 @@ using System.Runtime.InteropServices;
 
 [assembly: ComVisible (false)]
 
-[assembly: CLSCompliant (true)]
+//[assembly: CLSCompliant (true)]
 [assembly: AssemblyDelaySign (true)]
 [assembly: AssemblyKeyFile("../../../msfinal.pub")]
 
-#if NET_2_0
-       [assembly: AssemblyFileVersion (Consts.FxFileVersion)]
-       [assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
-       [assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
-       [assembly: RuntimeCompatibility (WrapNonExceptionThrows = true)]
-#elif NET_1_1
-       [assembly: AssemblyTrademark ("")]
-       [assembly: AssemblyConfiguration ("")]
-#elif NET_1_0
-       [assembly: AssemblyTrademark ("")]
-       [assembly: AssemblyConfiguration ("")]
-#endif
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
index c31134f7463e4a75414c9ed24b664b14fecc54f5..93ae3a5892c9e7e4dc3fb9f341621957aa9b5ce0 100644 (file)
@@ -357,8 +357,6 @@ namespace System.Collections.Generic {
                        if (predicate == null)
                                throw new ArgumentNullException ("predicate");
 
-                       int counter = 0;
-
                        var candidates = new List<T> ();
 
                        foreach (var item in this)
index 713d92d3b8bd0887c10648e05b61e8edbdde72a4..94ac3a4afe31068734bf72d62137ffe3235fda0a 100644 (file)
@@ -327,12 +327,9 @@ namespace System.IO.MemoryMappedFiles
 
                static MmapProts ToUnixProts (MemoryMappedFileAccess access)
                {
-                       MmapProts prots;
-                       
                        switch (access){
                        case MemoryMappedFileAccess.ReadWrite:
                                return MmapProts.PROT_WRITE | MmapProts.PROT_READ;
-                               break;
                                
                        case MemoryMappedFileAccess.Write:
                                return MmapProts.PROT_WRITE;
@@ -393,4 +390,4 @@ namespace System.IO.MemoryMappedFiles
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index 4bbf14066c4fb1ab94594f373a5c6ba4376de79c..02453c8666553a584f4c04d954bad31b79012048 100644 (file)
@@ -57,7 +57,6 @@ namespace System.IO.MemoryMappedFiles
                        case MemoryMappedFileAccess.ReadWrite:
                        case MemoryMappedFileAccess.ReadWriteExecute:
                                return FileAccess.ReadWrite;
-                               break;
                                
                        case MemoryMappedFileAccess.Write:
                                return FileAccess.Write;
@@ -104,4 +103,4 @@ namespace System.IO.MemoryMappedFiles
        }
 }
 
-#endif
\ No newline at end of file
+#endif
index a9f19967f859435f9c7642668f5da9f2bf3e055e..2f06df8949a4e2d2efc15a07fd8d581f7be49880 100644 (file)
@@ -162,7 +162,6 @@ namespace System.IO.Pipes
                
                protected FileAccess RightsToFileAccess (PipeAccessRights rights)
                {
-                       string access = null;
                        if ((rights & PipeAccessRights.ReadData) != 0) {
                                if ((rights & PipeAccessRights.WriteData) != 0)
                                        return FileAccess.ReadWrite;
@@ -197,7 +196,7 @@ namespace System.IO.Pipes
                        var name = Path.Combine ("/var/tmp/", pipeName);
                        EnsureTargetFile (name);
                        
-                       string access = RightsToAccess (desiredAccessRights);
+                       RightsToAccess (desiredAccessRights);
                        
                        ValidateOptions (options, owner.TransmissionMode);
                        
@@ -211,7 +210,6 @@ namespace System.IO.Pipes
                }
 
                NamedPipeClientStream owner;
-               bool is_async;
                SafePipeHandle handle;
                Action opener;
 
@@ -239,7 +237,7 @@ namespace System.IO.Pipes
                }
 
                public bool IsAsync {
-                       get { return is_async; }
+                       get { return false; }
                }
 
                public int NumberOfServerInstances {
@@ -266,7 +264,7 @@ namespace System.IO.Pipes
                        string name = Path.Combine ("/var/tmp/", pipeName);
                        EnsureTargetFile (name);
 
-                       string access = RightsToAccess (rights);
+                       RightsToAccess (rights);
 
                        ValidateOptions (options, owner.TransmissionMode);
 
index 37d454434388b785aa0cf12d8c29f2b4c955296e..dd45bdc967c6f7a82073b4e3e792a66fb915b7ba 100644 (file)
@@ -63,7 +63,6 @@ namespace System.Linq.Expressions {
                void EmitNullableConstant (EmitContext ec, Type type, object value)
                {
                        if (value == null) {
-                               var ig = ec.ig;
                                var local = ec.ig.DeclareLocal (type);
                                ec.EmitNullableInitialize (local);
                        } else {
index 4ebbc492e173a4aa585b1e00a9eca3991b0ff4a3..8b244670f352b96c645e7d01844b0cb0bdaa801c 100644 (file)
@@ -143,7 +143,6 @@ namespace System.Linq.Parallel
                        }
                }
 
-               readonly int num;
                SlotBucket slotBucket;
                
                IEnumerator<KeyValuePair<long, T>?> currEnum;
@@ -151,7 +150,6 @@ namespace System.Linq.Parallel
 
                internal OrderingEnumerator (int num, CancellationToken token)
                {
-                       this.num = num;
                        slotBucket = new SlotBucket (num, token);
                }
 
index 056bdefdafb0e742c8e68548d646ba7efec08063..942bd977419b4f2f11b373857d19fd4aa327e86b 100644 (file)
@@ -37,7 +37,6 @@ namespace System.Security.Cryptography.Xml {
 
                #region Fields
 
-               bool cacheValid;
                string referenceType;
                string uri;
                TransformChain tc;
@@ -68,9 +67,9 @@ namespace System.Security.Cryptography.Xml {
 
                #region Properties
 
-               [MonoTODO()]
+               [MonoTODO("Always returns false")]
                protected internal bool CacheValid {
-                       get { return cacheValid; }
+                       get { return false; }
                }
 
                protected string ReferenceType {
index ac263b520018b9cd85b608735c655754fa7ffc3a..0dc8fc365269ec1740e7f9dcd6b702910dc43a3f 100644 (file)
@@ -37,7 +37,6 @@ namespace System.Security.Cryptography.Xml {
 
                #region Fields
 
-               XmlElement elemProp;
                string id;
                string target;
 
@@ -62,8 +61,9 @@ namespace System.Security.Cryptography.Xml {
                        get { return id; }
                }
 
+               [MonoTODO ("Always returns null")]
                public XmlElement PropertyElement {
-                       get { return elemProp; }
+                       get { return null; }
                        set { LoadXml (value); }
                }
 
index 83e4b8c43a91658d3e5a3d52c787513acadb6267..984f9a3473b0edb0dfe8f528a55bfbc537251bd0 100644 (file)
@@ -91,7 +91,7 @@ namespace System.ServiceModel.Routing
                        return ret;
                }
 
-               static readonly MethodInfo create_factory_method = typeof (ChannelFactory).GetMethod ("CreateFactory", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
+//             static readonly MethodInfo create_factory_method = typeof (ChannelFactory).GetMethod ("CreateFactory", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
 
                void ProcessMessageDuplexSession (Message message)
                {
index 1820828d0a4b544bf90263e1bc34a09a34f659e5..5d255ac84461544d7d886c76adc9a670146b7922 100644 (file)
@@ -186,8 +186,6 @@ namespace System.ServiceModel.Dispatcher
                                }
                                return parameter.ToString ();
                        }
-
-                       throw new NotImplementedException ();
                }
 
                Type ToActualType (Type t)
index b633c9ecf2579f6ca5eb0084386387dada1a4d10..239fbb8b10c566e561e54ee19993c07ff4725368 100644 (file)
@@ -164,7 +164,7 @@ namespace System.ServiceModel.Dispatcher
                                        return GetSerializer (ref xml_serializer, p => new DataContractSerializer (p.Type, p.Name, p.Namespace));
                                else
                                        return GetSerializer (ref xml_serializer, p => new DataContractSerializer (p.Type));
-                               break;
+
                        case WebContentFormat.Json:
                                // FIXME: after name argument they are hack
 #if !MOONLIGHT
@@ -173,7 +173,7 @@ namespace System.ServiceModel.Dispatcher
                                else
 #endif
                                        return GetSerializer (ref json_serializer, p => new DataContractJsonSerializer (p.Type));
-                               break;
+
                        default:
                                throw new NotImplementedException ();
                        }
index 74167447bb910359a61333f08cd773ace27e5499..6012049e3af9730047955aa0f932ee4f80a6a652 100644 (file)
@@ -45,12 +45,14 @@ namespace System.Web.Caching
 {      
        sealed class OutputCacheModule : IHttpModule
        {
-               OutputCacheProvider provider;
                CacheItemRemovedCallback response_removed;
                static object keysCacheLock = new object ();
                Dictionary <string, string> keysCache;
                Dictionary <string, string> entriesToInvalidate;
+               
 #if !NET_4_0
+               OutputCacheProvider provider;
+
                internal OutputCacheProvider InternalProvider {
                        get { return provider; }
                }
index 445754eb4ca8cb00c7d7e16b4ed8eba56d6c523a..73f50346378e9ac4fadf639607d7a5e668132acc 100644 (file)
@@ -658,7 +658,6 @@ namespace System.Web.Compilation
                        if (assembly == null)
                                throw new ArgumentNullException ("assembly");
 
-                       Type ret = HttpApplicationFactory.AppType;
                        if (preStartMethodsDone)
                                throw new InvalidOperationException ("This method cannot be called after the application's pre-start initialization stage.");
 
index c026fed03793a874708921c7368e70625d330c17..7ed02757b169743fb75a7a058c44a86dece31e54 100644 (file)
@@ -189,7 +189,7 @@ namespace System.Web.Compilation
                        currentLocation = builder.Location;
                        bool inBuildControlTree = builder is RootBuilder;
                        string tailname = (inBuildControlTree ? "Tree" : ("_" + builder.ID));
-                       bool isProperty = builder.IsProperty;
+//                     bool isProperty = builder.IsProperty;
                        CodeMemberMethod method = new CodeMemberMethod ();
                        builder.Method = method;
                        builder.MethodStatements = method.Statements;
index e74a093cd0ae971bb7f5c647445307fa838e1a3d..388a54c103853c5cfd88045a95c0b56795087b55 100644 (file)
@@ -403,7 +403,7 @@ namespace System.Web.UI.WebControls
                        }
                        
                        SubMenuStyle staticMenuStyle = owner.StaticMenuStyleInternal;
-                       MenuItemStyle dynamicMenuItemStyle = owner.DynamicMenuItemStyleInternal;
+//                     MenuItemStyle dynamicMenuItemStyle = owner.DynamicMenuItemStyleInternal;
                        SubMenuStyle dynamicMenuStyle = owner.DynamicMenuStyleInternal;
                        SubMenuStyleCollection levelSubMenuStyles = owner.LevelSubMenuStylesInternal;
                        
index 02d2c66b1d840409445333a4ae1c2015f73ce115..cbc0cb17bfd2aba99c8b4fa1abd061b1e05ffac5 100644 (file)
@@ -87,7 +87,6 @@ namespace System.Web.UI.WebControls
                        if (other == null)
                                return false;
 
-                       int thisCount, otherCount;
                        IOrderedDictionary otherKeyTable = other.keyTable;
                        if (keyTable != null && otherKeyTable != null) {
                                if (keyTable.Count != otherKeyTable.Count)
index 51e8235281c310463e630d21fe515df53165f4fc..35651314349c99a4da419a53e13d530f044165aa 100644 (file)
@@ -154,7 +154,9 @@ namespace System.Web.UI.WebControls
                        base.Render (writer);
 
                        if (spots != null && spots.Count > 0) {
+#if NET_4_0                            
                                bool enabled = Enabled;
+#endif
                                writer.AddAttribute (HtmlTextWriterAttribute.Id, "ImageMap" + ClientID);
                                writer.AddAttribute (HtmlTextWriterAttribute.Name, "ImageMap" + ClientID);
                                writer.RenderBeginTag (HtmlTextWriterTag.Map);
index 174d2de21462efa50fe4f4aadc0d2b7abc33bf44..63399a68c927e1c6f770554226ad79702105b286 100644 (file)
@@ -290,7 +290,6 @@ namespace System.Web.UI.WebControls
                protected override void RenderMenuItem (HtmlTextWriter writer, MenuItem item, bool vertical, bool notLast, bool isFirst, OwnerContext oc)
                {
                        Menu owner = Owner;
-                       string clientID = oc.ClientID;
                        bool displayChildren = owner.DisplayChildren (item);
                        bool isDynamicItem = IsDynamicItem (owner, item);
                        int itemLevel = item.Depth + 1;
index 6df3f6d3646ff6d34dec7ce607f7eeac49a0d3c1..b067f6ae79ceece5122a7a99c01943b9243e119e 100644 (file)
@@ -1390,8 +1390,9 @@ namespace System.Web.UI.WebControls
                        writer.AddStyleAttribute (HtmlTextWriterStyle.BorderWidth, "0");
                        writer.RenderBeginTag (HtmlTextWriterTag.Table);
 
-                       Unit nodeSpacing = GetNodeSpacing (node);
 #if !NET_4_0
+                       Unit nodeSpacing = GetNodeSpacing (node);
+
                        if (nodeSpacing != Unit.Empty && (node.Depth > 0 || node.Index > 0))
                                RenderMenuItemSpacing (writer, nodeSpacing);
 #endif
index 7f6ebe8e4f12bc47e7a88f1a7c2e70dc4601836e..98d64b51a4a8fa1a79337ad5e07654a8d69e99bb 100644 (file)
@@ -2149,7 +2149,6 @@ namespace System.Web.UI
                                throw new ArgumentNullException ("control");
 
                        Control parent = this;
-                       Page page = Page;
                        Control namingContainer = control.NamingContainer;
                        
                        if (namingContainer != null)
index b44b3180643aae23075bf2aa611d93ad6f1558c4..1db2a4569854d07f49de8572e62c11b6a049c19f 100644 (file)
@@ -68,7 +68,7 @@ namespace System.Web.UI
 [DesignerSerializer ("Microsoft.VisualStudio.Web.WebForms.WebFormCodeDomSerializer, " + Consts.AssemblyMicrosoft_VisualStudio_Web, "System.ComponentModel.Design.Serialization.TypeCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
 public partial class Page : TemplateControl, IHttpHandler
 {
-       static string machineKeyConfigPath = "system.web/machineKey";
+//     static string machineKeyConfigPath = "system.web/machineKey";
        bool _eventValidation = true;
        object [] _savedControlState;
        bool _doLoadPreviousPage;
index 5c1396e78c63e20c5b1a82eff7d0b796f4e4f99b..9daea73b4f71ec23059c4ca485e49477a31ddb54 100644 (file)
@@ -38,7 +38,7 @@ namespace System.Web.UI {
        public class StaticPartialCachingControl : BasePartialCachingControl
        {
                BuildMethod buildMethod;
-               string sqlDependency;
+//             string sqlDependency;
 
                public StaticPartialCachingControl (string ctrlID, string guid, int duration,
                                string varyByParams, string varyByControls, string varyByCustom,
@@ -59,7 +59,7 @@ namespace System.Web.UI {
                                                    BuildMethod buildMethod)
                        : this (ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, buildMethod)
                {
-                       this.sqlDependency = sqlDependency;
+//                     this.sqlDependency = sqlDependency;
                }
 #if NET_4_0
                public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams,
index 313bb43a8618f44653fdeaa1f604ad20d77d4874..c60243693d65c0aa5688c23a79f1006a20893971 100644 (file)
@@ -102,12 +102,12 @@ namespace System.Web.Util {
                                break;
                        default:
 #if NET_4_0
-                               if (name.StartsWith ("alg:"))
+                               if (name.StartsWith ("alg:")) {
                                        sa = SymmetricAlgorithm.Create (name.Substring (4));
-                               else
+                                       break;
+                               }
 #endif
-                                       throw new ConfigurationErrorsException ();
-                               break;
+                               throw new ConfigurationErrorsException ();
                        }
                        return sa;
                }
index e959a9ab287433e8c8ab3a7051c03f55000b5108..be54c802447f2ba96f49595d0d5f0fdc7d358f86 100644 (file)
@@ -34,8 +34,6 @@ namespace System.Web.Util
 {
        public class RequestValidator
        {
-               static readonly object currentCreationLock = new object();
-               
                static RequestValidator current;
                static Lazy <RequestValidator> lazyLoader;
 
index 432129dcae2392ad633ccb2d6e91f3a68d3311ab..13cd492ea77277bd83c0b81a60a6e854e31aecb9 100644 (file)
@@ -51,7 +51,7 @@ namespace System.Web
                                headerValue = hvalue;
                        }
                }
-         
+/*       
                static bool headerCheckingEnabled;
                
                static BaseResponseHeader ()
@@ -59,7 +59,7 @@ namespace System.Web
                        HttpRuntimeSection section = WebConfigurationManager.GetWebApplicationSection ("system.web/httpRuntime") as HttpRuntimeSection;
                        headerCheckingEnabled = section == null || section.EnableHeaderChecking;
                }
-
+*/
 
                internal BaseResponseHeader (string val)
                {
index 729567927c98f66ba4d4b2ded5b640604e8f7edf..b5151b03e55d60a6756aac3c394a87c312773266 100644 (file)
@@ -57,8 +57,8 @@ namespace System.Xaml.Schema
                {
                        if (instance == null)
                                throw new ArgumentNullException ("instance");
-                       if (this is XamlDirective)
-                               throw new NotSupportedException ("not supported operation on directive members.");
+//                     if (this is XamlDirective)
+//                             throw new NotSupportedException ("not supported operation on directive members.");
                        if (UnderlyingGetter == null)
                                throw new NotSupportedException ("Attempt to get value from write-only property or event");
                        return UnderlyingGetter.Invoke (instance, new object [0]);
@@ -67,8 +67,8 @@ namespace System.Xaml.Schema
                {
                        if (instance == null)
                                throw new ArgumentNullException ("instance");
-                       if (this is XamlDirective)
-                               throw new NotSupportedException ("not supported operation on directive members.");
+//                     if (this is XamlDirective)
+//                             throw new NotSupportedException ("not supported operation on directive members.");
                        if (UnderlyingSetter == null)
                                throw new NotSupportedException ("Attempt to get value from read-only property");
                        UnderlyingSetter.Invoke (instance, new object [] {value});
index 3d34cb426c584a3b0b04fb801e9dd7c5a914835a..2584c80d65462e2d3a741a78a349761bd56b66ee 100644 (file)
@@ -1,7 +1,6 @@
 ../../build/common/Consts.cs
 ../../build/common/Locale.cs
 ../../build/common/MonoTODOAttribute.cs
-../../build/common/basic-profile-check.cs
 Assembly/AssemblyInfo.cs
 System.Windows.Markup/AmbientAttribute.cs
 System.Windows.Markup/ArrayExtension.cs
index f377644784bd4383f0361260b87c1d6d812f915d..581da0097e0e77acb2000c407a7b5e363263cad1 100644 (file)
@@ -44,7 +44,7 @@ namespace System.Xaml
                        
                        public XamlNodeType OwnerType { get; set; }
 
-                       public IEnumerator<NamespaceDeclaration> GetEnumerator ()
+                       public new IEnumerator<NamespaceDeclaration> GetEnumerator ()
                        {
                                return new NSEnumerator (this, base.GetEnumerator ());
                        }
@@ -120,6 +120,7 @@ namespace System.Xaml
                {
                }
 
+               [MonoTODO ("settings is not used")]
                public XamlObjectReader (object instance, XamlSchemaContext schemaContext, XamlObjectReaderSettings settings)
                {
                        if (schemaContext == null)
@@ -130,7 +131,7 @@ namespace System.Xaml
 
                        this.root = instance;
                        sctx = schemaContext;
-                       this.settings = settings;
+//                     this.settings = settings;
 
                        prefix_lookup = new PrefixLookup (this);
 
@@ -149,7 +150,7 @@ namespace System.Xaml
                readonly object root;
                readonly XamlType root_type;
                readonly XamlSchemaContext sctx;
-               readonly XamlObjectReaderSettings settings;
+//             readonly XamlObjectReaderSettings settings;
                readonly INamespacePrefixLookup prefix_lookup;
 
                Stack<XamlType> types = new Stack<XamlType> ();
@@ -442,7 +443,6 @@ namespace System.Xaml
                                                return null;
                                        var xtt = SchemaContext.GetXamlType (type);
                                        var ns = xtt.PreferredXamlNamespace;
-                                       var nss = collectingNamespaces;
                                        CheckAddNamespace (collectingNamespaces, ns);
                                        return null;
                                }
index 708f0c9734f1ebd6db93f65d30a9443d6d7c4053..620930a56f93403f63597ae49befb876205ce037 100644 (file)
@@ -152,7 +152,6 @@ namespace System.Xaml
                        
                        var xm = members.Pop ();
                        var state = object_states.Peek ();
-                       var xt = state.Type;
                        var contents = state.Contents;
 
                        if (xm == XamlLanguage.Arguments) {
@@ -225,7 +224,6 @@ namespace System.Xaml
                        InitializeObjectIfRequired (false); // this is required for such case that there was no StartMember call.
 
                        var state = object_states.Pop ();
-                       var xt = state.Type;
                        var obj = GetCorrectlyTypedValue (state.Type, state.Value);
                        if (members.Count > 0) {
                                var pstate = object_states.Peek ();
@@ -270,7 +268,7 @@ namespace System.Xaml
 
                        manager.StartMember ();
 
-                       var wpl = object_states.Peek ().WrittenProperties;
+                       //var wpl = object_states.Peek ().WrittenProperties;
                        // FIXME: enable this. Duplicate property check should
                        // be differentiate from duplicate contents (both result
                        // in XamlDuplicateMemberException though).
index 039daab61c726e17430edcb9876847a186562962..0e6075197ac45f746faffff3592743b4a1246743 100644 (file)
@@ -82,7 +82,7 @@ namespace System.Xaml
                                                continue;
                                        }
                                }
-                               return;
+
                        default:
                                Read ();
                                return;
index 27ad215c19a4cc63d6783437f8c452cf7430f3d7..0c83aba64cac72365c20166dd27be2ba6daabd57 100644 (file)
@@ -38,9 +38,9 @@ namespace System.Xaml
                {
                }
 
-               static readonly Type [] predefined_types = {
-                               typeof (XData), typeof (Uri), typeof (TimeSpan), typeof (PropertyDefinition), typeof (MemberDefinition), typeof (Reference)
-                       };
+//             static readonly Type [] predefined_types = {
+//                             typeof (XData), typeof (Uri), typeof (TimeSpan), typeof (PropertyDefinition), typeof (MemberDefinition), typeof (Reference)
+//                     };
 
                public XamlType (Type underlyingType, XamlSchemaContext schemaContext, XamlTypeInvoker invoker)
                        : this (schemaContext, invoker)
index 4e1ad2972befb9b7e3f9706a73258ecda2644ed5..b8fba27d544ccc8cc6e5531117656307dcfaf2bb 100644 (file)
@@ -152,9 +152,6 @@ namespace System.Xaml
                IEnumerator<Pair> stored_member_enumerator;
                IXamlNamespaceResolver xaml_namespace_resolver;
 
-               // This is used for things like collection Items.
-               Dictionary<int,Stack<XamlMember>> inecting_members = new Dictionary<int,Stack<XamlMember>> ();
-
                public bool HasLineInfo {
                        get { return line_info != null && line_info.HasLineInfo (); }
                }
index 2dc52774f9edc41787015edc23b6aec47321d6f6..a93b7024936e3b3aecd291143c93f3495abb68f3 100644 (file)
@@ -81,7 +81,6 @@ namespace System.Xaml
                XmlWriter w;
                XamlSchemaContext sctx;
                XamlXmlWriterSettings settings;
-               IValueSerializerContext serializer_context;
 
                XamlWriterStateManager manager;
 
@@ -210,9 +209,9 @@ namespace System.Xaml
                void DoEndMember ()
                {
                        var xm = nodes.Pop (); // XamlMember
-                       if (xm == XamlLanguage.Initialization)
-                               // do nothing
-                       else if (w.WriteState == WriteState.Content)
+                       if (xm == XamlLanguage.Initialization) {
+                               // do nothing
+                       else if (w.WriteState == WriteState.Content)
                                w.WriteEndElement ();
                        else
                                w.WriteEndAttribute ();
@@ -230,9 +229,9 @@ namespace System.Xaml
                        if (xm == null)
                                return;
 
-                       if (xm == XamlLanguage.Initialization)
-                               // do nothing
-                       else if (next == XamlNodeType.StartObject || w.WriteState == WriteState.Content || has_namespace)
+                       if (xm == XamlLanguage.Initialization) {
+                               // do nothing
+                       else if (next == XamlNodeType.StartObject || w.WriteState == WriteState.Content || has_namespace)
                                DoWriteStartMemberElement (xm);
                        else
                                DoWriteStartMemberAttribute (xm);
index 7fda37d68373ce7b0a29f8f4e160768cafe0ca47..ce0e49ba360723f888a92eef7b8f56cce7753b45 100644 (file)
@@ -234,7 +234,6 @@ namespace System.Net.Sockets {
                                if (queue != null) {
                                        Worker worker = null;
                                        SocketAsyncCall sac = null;
-                                       SocketAsyncResult req = null;
                                        lock (queue) {
                                                // queue.Count will only be 0 if the socket is closed while receive/send
                                                // operation(s) are pending and at least one call to this method is
index 02283c62b6667eb32293eb7006db1f317da8445f..2d8542f439dd81b226c02f2c910b84796c6f142f 100644 (file)
@@ -354,10 +354,9 @@ namespace System.Net {
                        if (sock != null) {
                                force_close |= (context.Request.Headers ["connection"] == "close");
                                if (!force_close) {
-                                       int status_code = context.Response.StatusCode;
-                                       bool conn_close = (status_code == 400 || status_code == 408 || status_code == 411 ||
-                                                       status_code == 413 || status_code == 414 || status_code == 500 ||
-                                                       status_code == 503);
+//                                     bool conn_close = (status_code == 400 || status_code == 408 || status_code == 411 ||
+//                                                     status_code == 413 || status_code == 414 || status_code == 500 ||
+//                                                     status_code == 503);
 
                                        force_close |= (context.Request.ProtocolVersion <= HttpVersion.Version10);
                                }
index 4ff468f30cdf2874566382bd713ef2dc6a0d6c1b..2d2dfaab4ce5eee448eee96f7fb7f0edd05d43e5 100644 (file)
@@ -50,7 +50,6 @@ namespace System.Net {
                Version version;
                NameValueCollection query_string; // check if null is ok, check if read-only, check case-sensitiveness
                string raw_url;
-               Guid identifier;
                Uri url;
                Uri referrer;
                string [] user_languages;
@@ -408,8 +407,9 @@ namespace System.Net {
                        get { return context.Connection.RemoteEndPoint; }
                }
 
+               [MonoTODO ("Always returns Guid.Empty")]
                public Guid RequestTraceIdentifier {
-                       get { return identifier; }
+                       get { return Guid.Empty; }
                }
 
                public Uri Url {
index cbce8bcdf10fcfede1815328138a84be296c8d5d..d47cf417e91cd9038bdf58d6b62b78c3dde062f9 100644 (file)
@@ -86,7 +86,7 @@ namespace System.Net
                Thread async_thread;
                Encoding encoding = Encoding.Default;
                IWebProxy proxy;
-               RequestCachePolicy cache_policy;
+//             RequestCachePolicy cache_policy;
 
                // Constructors
                static WebClient ()
@@ -137,7 +137,7 @@ namespace System.Net
                        get {
                                throw GetMustImplement ();
                        }
-                       set { cache_policy = value; }
+                       set { /*cache_policy = value;*/ }
                }
 
                [MonoTODO ("Value can be set but is ignored")]
index 98cc0e83bc699bfc653569ed2cdaa0bc4f134033..ff6a6e5eb757d76d5e17a36e45299ca8e9d3c3f0 100644 (file)
@@ -860,7 +860,6 @@ namespace System.Text.RegularExpressions.Syntax {
                        case '1': case '2': case '3': case '4': case '5':
                        case '6': case '7': case '8': case '9': {
                                ptr --;
-                               int oldptr = ptr;
                                int n = ParseNumber (10, 1, 0);
                                if (n < 0) {
                                        ptr = p;
index e8b9c11e4bda259aaadfee10dff896bf339146b8..9a016dee1ae3d629698e7e5f1e32aec71a206552 100644 (file)
@@ -92,7 +92,7 @@ namespace System {
                private int cachedHashCode;
 
                private static readonly string hexUpperChars = "0123456789ABCDEF";
-               private static string [] Empty = new string [0];
+               private static readonly string [] Empty = new string [0];
                private static bool isWin32 = (Path.DirectorySeparatorChar == '\\');
 
        
index 84f50dca99adbb714bc47e5f450cf53b426e1e09..221aa3bae93909a018e1fbce819446d8553d913e 100644 (file)
@@ -4603,7 +4603,8 @@ embedded_statement
 empty_statement
        : SEMICOLON
          {
-               $$ = new EmptyStatement (GetLocation ($1));
+               // Uses lexer.Location because semicolon location is not kept in quick mode
+               $$ = new EmptyStatement (lexer.Location);
          }
        ;