public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37724]  New: "initialization from incompatible pointer type" does not say which field is being initialized
@ 2008-10-03  5:27 pinskia at gcc dot gnu dot org
  2008-10-03  5:40 ` [Bug c/37724] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-10-03  5:27 UTC (permalink / raw)
  To: gcc-bugs

When I was upgrading the PS3 toolchain I found it would have been useful to
figure out which field of a struct was being initialized with this warning
turned on.
Take:
struct f
{
  int *a;
};

char b[10];
struct f g = {b};

--- CUT ---
Currently we just get:
t.c:7: warning: initialization from incompatible pointer type

But with a large macro like what is in GCC sources, it is hard to figure out
which field has the incompatible pointer type.
Likewise for the diffs in signedness warning.


-- 
           Summary: "initialization from incompatible pointer type" does not
                    say which field is being initialized
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37724


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-06-08  4:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-03  5:27 [Bug c/37724] New: "initialization from incompatible pointer type" does not say which field is being initialized pinskia at gcc dot gnu dot org
2008-10-03  5:40 ` [Bug c/37724] " pinskia at gcc dot gnu dot org
2008-10-03 12:52 ` rguenth at gcc dot gnu dot org
2008-10-03 17:35 ` pinskia at gmail dot com
2008-10-03 20:43 ` pinskia at gcc dot gnu dot org
2009-04-22 20:59 ` pinskia at gcc dot gnu dot org
2010-04-09  2:19 ` pinskia at gcc dot gnu dot org
2010-05-28 17:15 ` pinskia at gcc dot gnu dot org
2010-06-08  3:57 ` pzhao at gcc dot gnu dot org
2010-06-08  4:02 ` pzhao at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).