suzhe / google-gadgets-for-linux

Automatically exported from code.google.com/p/google-gadgets-for-linux
Apache License 2.0
0 stars 0 forks source link

error ./../ggadget/variant.cc: In destructor ‘ggadget::Variant::~Variant()’: #310

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Fedora 11
gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC)

cc1plus: warnings being treated as errors                                 

../../ggadget/variant.cc: In destructor ‘ggadget::Variant::~Variant()’:   

../../ggadget/variant.cc:68: error: dereferencing type-punned pointer will
break strict-aliasing rules                                       
../../ggadget/variant.cc:71: error: dereferencing type-punned pointer will
break strict-aliasing rules                                       
../../ggadget/variant.cc: In member function ‘ggadget::Variant&
ggadget::Variant::operator=(const ggadget::Variant&)’:                       
../../ggadget/variant.cc:83: error: dereferencing type-punned pointer will
break strict-aliasing rules                                       
../../ggadget/variant.cc:86: error: dereferencing type-punned pointer will
break strict-aliasing rules                                       
../../ggadget/variant.cc:105: error: dereferencing type-punned pointer will
break strict-aliasing rules                                      
../../ggadget/variant.cc:109: error: dereferencing type-punned pointer will
break strict-aliasing rules                                      
../../ggadget/variant.cc: In member function ‘std::string
ggadget::Variant::Print() const’:                                         

../../ggadget/variant.cc:202: error: dereferencing type-punned pointer will
break strict-aliasing rules                                      
../../ggadget/variant.cc:210: error: dereferencing type-punned pointer will
break strict-aliasing rules                                      
make[4]: *** [libggadget-1.0_la-variant.lo] Error 1                       

make[4]: *** Waiting for unfinished jobs....                              

 g++ -DHAVE_CONFIG_H -I. -I../../ggadget -I.. -I.. -I../..
-D__STDC_CONSTANT_MACROS -DNDEBUG
-DGGL_MODULE_DIR=\"/usr/lib/google-gadgets/modules\"
-DGGL_INCLUDE_DIR=\"/usr/include/google-gadgets\"
-DGGL_SYSDEPS_INCLUDE_DIR=\"/usr/lib/google-gadgets/include\"
-DGGL_LIBEXEC_DIR=\"/usr/lib/google-gadgets\"
-DGGL_RESOURCE_DIR=\"/usr/share/google-gadgets\" -DGGL_HOST_LINUX=1
-DGGL_LITTLE_ENDIAN -DHAVE_PTHREAD=1 -DHAVE_X11=1 -DHAVE_DBUS_LIBRARY
-DHAVE_DBUS_WATCH_GET_UNIX_FD -DHAVE_RSVG_LIBRARY
-DHAVE_STARTUP_NOTIFICATION -DHAVE_NETWORK_MANAGER
-DHAVE_NEW_NETWORK_MANAGER_API -DHAVE_JAVA_SCRIPT_H
-DGGL_GTK_WEBKIT_SUPPORT_JSC -DHAVE_MKDTEMP -DHAVE_MMAP
"-DGGL_DIST_INFO=\"linux-i686 (Fedora release 11 (Leonidas)) (-)\""
-DGGL_DEFAULT_GST_AUDIO_SINK=\"autoaudiosink\"
-DGGL_DEFAULT_BROWSER_PLUGINS_DIR=\"/usr/lib/mozilla/plugins\"
-DGGL_ENABLE_XDGMIME -DGGL_GTK_HTML_SCRIPT_ENGINE=\"webkit\"
-DGGL_GTK_XML_HTTP_REQUEST=\"soup\" -O2 -Wall -fstack-protector -Werror -MT
libggadget-1.0_la-view_decorator_base.lo -MD -MP -MF
.deps/libggadget-1.0_la-view_decorator_base.Tpo -c
../../ggadget/view_decorator_base.cc -o
libggadget-1.0_la-view_decorator_base.o >/dev/null 2>&1
mv -f .deps/libggadget-1.0_la-view_decorator_base.Tpo
.deps/libggadget-1.0_la-view_decorator_base.Plo
make[4]: Leaving directory
`/home/khelll/applications-linux/google-gadgets-for-linux-0.11.0/build/ggadget'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/khelll/applications-linux/google-gadgets-for-linux-0.11.0/build/ggadget'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/khelll/applications-linux/google-gadgets-for-linux-0.11.0/build/ggadget'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/khelll/applications-linux/google-gadgets-for-linux-0.11.0/build'
make: *** [all] Error 2

Original issue reported on code.google.com by khel...@gmail.com on 15 Jun 2009 at 12:55

GoogleCodeExporter commented 9 years ago
It's a known issue and we still don't know how to fix it. You may use
--disable-werror configure option to workaround this issue.

Original comment by james...@gmail.com on 20 Jun 2009 at 4:24

GoogleCodeExporter commented 9 years ago
Issue 289 has been merged into this issue.

Original comment by phnix...@gmail.com on 6 Jul 2009 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by james...@gmail.com on 14 Jan 2010 at 8:32