From: Daniel C. \(kzu\) <dca...@us...> - 2005-11-01 06:44:50
|
Update of /cvsroot/mvp-xml/Design/v2/src/CustomTools/XGen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11928/v2/src/CustomTools/XGen Modified Files: XmlSerializerGenerator.cs Log Message: Generated code does not produce more compiler warnings (had to resort to pragmas :S) Index: XmlSerializerGenerator.cs =================================================================== RCS file: /cvsroot/mvp-xml/Design/v2/src/CustomTools/XGen/XmlSerializerGenerator.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- XmlSerializerGenerator.cs 31 Oct 2005 12:28:17 -0000 1.3 +++ XmlSerializerGenerator.cs 1 Nov 2005 06:44:41 -0000 1.4 @@ -272,7 +272,10 @@ output = NestTypesOnSerialier(output, rootObject); output = FixInstantiationOfNestedTypes(output, rootObject); - output = "\r\n#pragma warning disable 0642, 0219\r\n" + output + "\r\n#pragma warning restore 0642, 0219"; + output = @" +#pragma warning disable 0642, 0219 +" + output + @" +#pragma warning restore 0642, 0219"; output = CustomTool.GetToolGeneratedCodeWarning(typeof(XGenTool)) + output; |