On 23-01-2012 06:57, Claudio Valderrama C. wrote: > Adriano, I get a warning about non-standard extension: nameless struct or > union. > > struct Guid > { > enum Style > { > STYLE_NBACKUP, // Format introduced with nbackup > STYLE_BROKEN, // Format introduced in FB 2.5.0 > STYLE_UUID // Format as defined in the > RFC-4122. > }; > > union > { > USHORT data[8]; > > struct // Compatible with Win32 GUID struct layout. > { > ULONG data1; > USHORT data2; > USHORT data3; > UCHAR data4[8]; > }; > }; > }; > > But if I name the internal struct, I will have to qualify data1, data2, > data3 and data4 with the struct name where they appear. >
This is interesting, cause this compiles with -ansi in gcc and clang. What Visual Studio version you're using? (I suppode it's 9) What about others, using MSVC 10? Or are you using a greater warning level? Adriano ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel