000215 some warning removal

Brown, Rodney rodneybrown@pmsc.com
Sat Apr 1 00:00:00 GMT 2000


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
> 






More information about the Gdb-patches mailing list