Build broken with gcc-4.4.1 on Ubuntu 9.10

2 views
Skip to first unread message

Dong Tiger

unread,
Nov 18, 2009, 6:37:40 AM11/18/09
to google-gadgets...@googlegroups.com
Hi,

When I tried to build ggl on Ubuntu 9.10. I got the following error.

workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc: In destructor ‘ggadget::Variant::~Variant()’:
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc:68: error: dereferencing type-punned pointer will break strict-aliasing rules
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc:71: error: dereferencing type-punned pointer will break strict-aliasing rules
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc: In member function ‘ggadget::Variant& ggadget::Variant::operator=(const ggadget::Variant&)’:
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc:83: error: dereferencing type-punned pointer will break strict-aliasing rules
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc:86: error: dereferencing type-punned pointer will break strict-aliasing rules
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc:105: error: dereferencing type-punned pointer will break strict-aliasing rules
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc:109: error: dereferencing type-punned pointer will break strict-aliasing rules
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc: In member function ‘std::string ggadget::Variant::Print() const’:
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc:202: error: dereferencing type-punned pointer will break strict-aliasing rules
workspace/ggl/google-gadgets-for-linux/ggadget/variant.cc:210: error: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [ggadget/CMakeFiles/ggadget-1.0.dir/variant.o] Error 1

Any idea to fix that?

--
Tiger

James Su

unread,
Nov 18, 2009, 6:53:34 AM11/18/09
to google-gadgets...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages