This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: 000215 some warning removal


Title: RE: 000215 some warning removal

Using gcc-2.95.2 with the default configury, => -Wall
you get
warning: missing initializer
warning: (near initization for `memory_read_packet_config.size')

Give the use of these ones it's of doubtfull benefit.
For bfd/som.c you get deluged by warnings

> Rodney Brown wrote:
>
> > --- gdb/remote.c.orig   Wed Feb  9 19:52:47 2000
> > +++ gdb/remote.c        Thu Feb 17 16:18:46 2000
> > @@ -425,6 +425,8 @@
> >  static struct memory_packet_config memory_write_packet_config =
> >  {
> >    "memory-write-packet-size",
> > +  0L,
> > +  0
> >  };
> >
> >  static void
> > @@ -448,6 +450,8 @@
> >  static struct memory_packet_config memory_read_packet_config =
> >  {
> >    "memory-read-packet-size",
> > +  0L,
> > +  0
> >  };
> >
> >  static void
>
> Um, these have me puzzled. Are complete initializers required?
>
>       Andrew
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]