GNOME Bugzilla – Bug 591215
Warning building unix-streams.o
Last modified: 2009-11-24 01:48:57 UTC
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -Wall -L/opt/gnome2/lib64 -o unix-streams unix-streams.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gio/libgio-2.0.la ../../gthread/libgthread-2.0.la unix-streams.c: In function ‘reader_thread’: unix-streams.c:80: warning: ‘nread’ may be used uninitialized in this function
what version of GCC is this? it seems *very* clear to me that nread is always initialised. do { total = 0; while (total < (gssize) sizeof (DATA)) { nread = g_input_stream_read (in, buf + total, sizeof (buf) - total, since 'total' is definitely less than sizeof (DATA) at least once
(In reply to comment #1) > what version of GCC is this? > It *was* gcc 4.3.3 in Ubuntu 9.04 (http://packages.ubuntu.com/jaunty/gcc). I've upgraded to 9.10 so I'm no longer able to re-run. I'll check if gcc 4.4.1 has the same issue when I'll start to jhbuild again.
OT the new bugzilla doesn't ask for NEEDINFO resolution??
Fixed (and committed) in this patch: https://bugzilla.gnome.org/attachment.cgi?id=147830&action=edit *** This bug has been marked as a duplicate of bug 602031 ***