[xsd-users] Compiler warnings in VS 2005

Boris Kolpackov boris at codesynthesis.com
Wed Mar 28 12:32:51 EDT 2007


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!


-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070328/579d67d6/attachment.pgp


More information about the xsd-users mailing list