Bug 485407
| Summary: | Warning from glibmm/refptr.h | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mamoru TASAKA <mtasaka> | ||||||||
| Component: | glibmm24 | Assignee: | Denis Leroy <denis> | ||||||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | rawhide | CC: | denis, jakub, murrayc | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2009-03-26 18:05:03 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Mamoru TASAKA
2009-02-13 13:04:36 UTC
No changes with glibmm 2.19.2. Filed upstream. I don't know what the warning means, but I suspect it would be a problem with a regular pointer, not just the RefPtr smartpointer. Maybe someone could attach the source file - it might give us more clues. Created attachment 332013 [details] src/winmain.h (In reply to comment #2) > Maybe someone could attach > the source file - it might give us more clues. Okay. This is src/winmain.h Created attachment 332014 [details]
src/winmain.cpp
and this is src/winmain.cpp
Could you try commenting lines out to see what line is triggering it? Maybe it's this one: std::list< Glib::RefPtr< Gdk::Pixbuf > > list_icons; The following test code triggers the warning. You need to compile with -O2 -Wall
#include <gtkmm.h>
void foo(void)
{
std::list< Glib::RefPtr< Gdk::Pixbuf > > list;
list.push_back( Gdk::Pixbuf::create_from_inline(0, NULL) );
Gtk::Window::set_default_icon_list( list_icons );
I wonder if this is this g++ bug, maybe not yet in Fedora's g++ version: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38937 CCing to Jakub. Created attachment 332344 [details] winmain.cpp with gcc -E Jakub, would you investigate how to fix this? Now with gcc-4.4.0-0.20.i586 the warning on /usr/include/glibmm-2.4/glibmm/refptr.h:172 disappeared, however warning on /usr/include/glibmm-2.4/glibmm/refptr.h:285 still appears as: http://koji.fedoraproject.org/koji/taskinfo?taskID=1135010 src/winmain.cpp with gcc -E is attached. ------------------------------------------------------------- $ LANG=C gcc -v Using built-in specs. Target: i586-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog=/builddir/build/BUILD/gcc-4.4.0-20090216/cloog-ppl/inst/usr --with-tune=generic --with-arch=i586 --build=i586-redhat-linux Thread model: posix gcc version 4.4.0 20090217 (Red Hat 4.4.0-0.20) (GCC) ---------------------------------------------------------------- With gcc-4.4.0-0.21 all warnings disappeared... Thanks for checking. Now I don't have to try to understand it. Closing, as these warnings no longer appear with the latest gcc. |