diff --git a/Source/Converter/ESCLParser.cs b/Source/Converter/ESCLParser.cs index c1ff85a0..8548f7d5 100644 --- a/Source/Converter/ESCLParser.cs +++ b/Source/Converter/ESCLParser.cs @@ -70,7 +70,9 @@ namespace CHeaderToXML else return t; } +#pragma warning disable 0162 //CS0162: Unreachable code detected /* gmcs bug 336258 */ return ""; +#pragma warning restore 0162 }).ToArray(); Func get_name = tokens => diff --git a/Source/Converter/GLParser.cs b/Source/Converter/GLParser.cs index 307d0c17..b5fbd05e 100644 --- a/Source/Converter/GLParser.cs +++ b/Source/Converter/GLParser.cs @@ -43,7 +43,6 @@ namespace CHeaderToXML ParserModes CurrentMode; enum EntryModes { Core, Compatibility }; - EntryModes CurrentEntryMode; public override IEnumerable Parse(string[] lines) { @@ -67,7 +66,6 @@ namespace CHeaderToXML new XAttribute("name", words[0])); CurrentMode = ParserModes.Enum; - CurrentEntryMode = EntryModes.Core; } else if (line.StartsWith(words[0] + "(")) { @@ -94,21 +92,15 @@ namespace CHeaderToXML current.Add(new XElement("use", new XAttribute("enum", words[1]), new XAttribute("token", words[2]))); - //new XAttribute("profile", CurrentEntryMode == EntryModes.Compatibility ? - // "compatibility" : "core"))); } else if (words[1] == "=") { current.Add(new XElement("token", new XAttribute("name", words[0]), new XAttribute("value", words[2]))); - //new XAttribute("profile", CurrentEntryMode == EntryModes.Compatibility ? - // "compatibility" : "core"))); } else if (words[0] == "profile:") { - //CurrentEntryMode = words[1] == "compatibility" ? - // EntryModes.Compatibility : EntryModes.Core; } else if (words[0].Contains("future_use")) {