[Qt-interest] dereferencing pointer '<anonymous>' does break strict-aliasing rules error

Thiago Macieira thiago at kde.org
Wed May 11 09:06:11 CEST 2011


On Wednesday, 11 de May de 2011 08:44:10 Bo Thorsen wrote:
> Den 11-05-2011 08:09, Thiago Macieira skrev:
> > On Wednesday, 11 de May de 2011 07:16:21 Bo Thorsen wrote:
> >> Den 10-05-2011 14:38, mmiacca skrev:
> >>> Hello
> >>> 
> >>> While i try with Qt 2010.05 (Qt 4.7.0 32 bits Windows) to compile
> >>> C:\Qt\2010.05\qt\examples\qtestlib\tutorial4 i get this error
> >>> ..\..\..\include/QtTest/../../src/testlib/qtestspontaneevent.h:77:
> >>> warning: dereferencing pointer '<anonymous>' does break
> >>> strict-aliasing
> >>> rules
> >> 
> >> You have to update visual studio with all patches for VS2010 to work.
> > 
> > That's a GCC warning.
> 
> As I said, upgrade visual studio :)
> 
> Ahem. *Cough cough*

There's nothing on line 77 to warrant that warning.

However, there is an anonymous union breaking strict aliasing starting on line 
94.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110511/fa11087b/attachment.bin 


More information about the Qt-interest-old mailing list