[xsd-users] Compiler warnings in VS 2005
mark.kinzie at jhuapl.edu
Wed Mar 28 12:55:38 EDT 2007
Thanks Boris! It's nice to have that fixed.
Boris Kolpackov wrote:
> Hi Mark,
> Mark Kinzie <mark.kinzie at jhuapl.edu> writes:
>> I'm working with the latest XSD using cxx-tree in Visual Studio 2005.
>> I've set up to use xsd according to the README. I manually run xsd, and
>> then copy the resulting .cxx and .hxx files to a directory in my
>> project, and everything works, except that I get the following compiler
>> warnings. Is there any way to get rid of them?
>> xsd/cxx/tree/exceptions.hxx(102) : warning C4224: nonstandard extension
> I was surprised we didn't see these warnings. After some digging it
> appear that this warning (C4224) is only issued when compiled with
> the /Za option (ANSI compatibility). The way to get rid of it is to
> add the following line to libxsd/xsd/cxx/compilers/vc-8/pre.hxx:
> #pragma warning (disable:4224)
> It will disable this warning for the XSD-generated code and the runtime.
> This fix will also appear in the next release of XSD.
> Thanks for reporting this!
More information about the xsd-users