diff options
author | Marek Safar <marek.safar@gmail.com> | 2017-01-17 15:47:19 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-01-17 15:47:42 +0300 |
commit | 1c77897951e790a0304b758bd6c6680529e91e7a (patch) | |
tree | 3b45a16f1d3617936088c62dd5d953f285d47259 | |
parent | 997a6529232b9f9a01c335620e1166b8f81a6161 (diff) |
Clean up few warnings
10 files changed, 11 insertions, 13 deletions
diff --git a/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs b/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs index bc5c6c50191..0f6d0051b28 100644 --- a/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs +++ b/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs @@ -54,7 +54,7 @@ namespace Mono.CodeContracts.Rewrite.AstVisitors { private void Emit (Expr originalExpr, Instruction inst) { - Instruction originalInst; + //Instruction originalInst; if (this.instructionLookup != null) { // TODO: Doesn't handle inherited contracts - need to check what to do in this case. //if (this.instructionLookup.TryGetValue (originalExpr, out originalInst)) { diff --git a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs index a5b902db573..3a1af2dc088 100644 --- a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs +++ b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs @@ -36,7 +36,7 @@ namespace Mono.Debugger.Soft struct SourceInfo { public string source_file; - public byte[] guid, hash; + public byte[] hash; } class DebugInfo { diff --git a/mcs/class/PEAPI/PEAPI.cs b/mcs/class/PEAPI/PEAPI.cs index ec3cb410717..a52bf41960a 100644 --- a/mcs/class/PEAPI/PEAPI.cs +++ b/mcs/class/PEAPI/PEAPI.cs @@ -106,7 +106,8 @@ namespace PEAPI { private static readonly string dllHintNameTable = "\0\0_CorDllMain\0"; private static readonly string runtimeEngineName = "mscoree.dll\0\0"; - private Section text, sdata, rsrc; + private Section text, sdata; + static readonly Section rsrc = null; ArrayList data; BinaryWriter reloc = new BinaryWriter(new MemoryStream()); uint dateStamp = 0; diff --git a/mcs/class/System.Web.DynamicData/Assembly/AssemblyInfo.cs b/mcs/class/System.Web.DynamicData/Assembly/AssemblyInfo.cs index 203951ce350..a3aefb7d774 100644 --- a/mcs/class/System.Web.DynamicData/Assembly/AssemblyInfo.cs +++ b/mcs/class/System.Web.DynamicData/Assembly/AssemblyInfo.cs @@ -61,7 +61,5 @@ using System.Runtime.InteropServices; [assembly: ComCompatibleVersion (1, 0, 3300, 0)] [assembly: AllowPartiallyTrustedCallers] -[assembly: SecurityCritical (SecurityCriticalScope.Explicit)] - // FIXME: We get collisions with this internalsVisibleTo because of Consts.cs and MonoTodo //[assembly: InternalsVisibleTo ("System.ServiceModel.Web, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/mcs/class/System.Windows.Forms.DataVisualization/Makefile b/mcs/class/System.Windows.Forms.DataVisualization/Makefile index 4c169c043ae..e0284d75bf1 100644 --- a/mcs/class/System.Windows.Forms.DataVisualization/Makefile +++ b/mcs/class/System.Windows.Forms.DataVisualization/Makefile @@ -4,7 +4,7 @@ include ../../build/rules.make LIBRARY = System.Windows.Forms.DataVisualization.dll LIB_REFS = System System.Drawing System.Windows.Forms System.Core System.Data System.Xml -LIB_MCS_FLAGS = +LIB_MCS_FLAGS = -nowarn:67 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) EXTRA_DISTFILES = diff --git a/mcs/class/System.Windows.Forms.DataVisualization/System.Windows.Forms.DataVisualization.Charting/Chart.cs b/mcs/class/System.Windows.Forms.DataVisualization/System.Windows.Forms.DataVisualization.Charting/Chart.cs index 95c8d6c28a2..58bb1338d16 100644 --- a/mcs/class/System.Windows.Forms.DataVisualization/System.Windows.Forms.DataVisualization.Charting/Chart.cs +++ b/mcs/class/System.Windows.Forms.DataVisualization/System.Windows.Forms.DataVisualization.Charting/Chart.cs @@ -64,7 +64,6 @@ namespace System.Windows.Forms.DataVisualization.Charting public DataManipulator DataManipulator { get; private set;} public Object DataSource { get; set; } protected override Size DefaultSize { get { return base.DefaultSize; } }//FIXME - public Font Font { get; set; } public override Color ForeColor { get; set; } public NamedImagesCollection Images { get; private set;} public bool IsSoftShadows { get; set; } @@ -76,7 +75,6 @@ namespace System.Windows.Forms.DataVisualization.Charting public double RenderingDpiY { get; set; } public ChartSerializer Serializer { get; private set; } public SeriesCollection Series { get; private set; } - public Size Size { get; set; } public bool SuppressExceptions { get; set; } public TextAntiAliasingQuality TextAntiAliasingQuality { get; set; } public TitleCollection Titles { get; private set;} diff --git a/mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs b/mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs index 94d4292a474..e6ad715ab95 100644 --- a/mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs +++ b/mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs @@ -41,8 +41,6 @@ namespace System.Net.NetworkInformation { protected UnixNetworkInterface iface; List <IPAddress> addresses; IPAddressCollection dns_servers; - string dns_suffix; - DateTime last_parse; public UnixIPInterfaceProperties (UnixNetworkInterface iface, List <IPAddress> addresses) { @@ -83,6 +81,10 @@ namespace System.Net.NetworkInformation { #else static Regex ns = new Regex (@"\s*nameserver\s+(?<address>.*)"); static Regex search = new Regex (@"\s*search\s+(?<domain>.*)"); + + string dns_suffix; + DateTime last_parse; + void ParseResolvConf () { try { diff --git a/mcs/class/WindowsBase/Makefile b/mcs/class/WindowsBase/Makefile index d3eaf78bc82..89ff47516df 100644 --- a/mcs/class/WindowsBase/Makefile +++ b/mcs/class/WindowsBase/Makefile @@ -4,7 +4,7 @@ include ../../build/rules.make LIBRARY = WindowsBase.dll LIB_REFS = System System.Xml -LIB_MCS_FLAGS = -unsafe +LIB_MCS_FLAGS = -unsafe -nowarn:67,618 TEST_MCS_FLAGS = -unsafe TEST_LIB_REFS = WindowsBase System System.Xml System.Core System.IO.Compression diff --git a/mcs/class/monodoc/Makefile b/mcs/class/monodoc/Makefile index a74c9550b55..d7b9717c7fa 100644 --- a/mcs/class/monodoc/Makefile +++ b/mcs/class/monodoc/Makefile @@ -6,7 +6,7 @@ LIBRARY = monodoc.dll LIBRARY_PACKAGE = monodoc # Remove a bunch of "obsolete"-type warning for Lucene.NET # also activate legacy mode to compile old monodoc.dll api -LOCAL_MCS_FLAGS = /nowarn:618,612,672,809 /define:LEGACY_MODE +LOCAL_MCS_FLAGS = /nowarn:618,612,672,809,414,649 /define:LEGACY_MODE JAY_FLAGS = -ct diff --git a/mcs/ilasm/Report.cs b/mcs/ilasm/Report.cs index a7ebafe8afd..c53763a6c8b 100644 --- a/mcs/ilasm/Report.cs +++ b/mcs/ilasm/Report.cs @@ -16,7 +16,6 @@ namespace Mono.ILASM { public abstract class Report { private static int error_count; - private static int mark_count; private static bool quiet; /* Current file being processed */ private static string file_path; |