From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: aoliva@redhat.com Cc: ezannoni@cygnus.com, gdb-patches@sources.redhat.com Subject: Re: GDB CVS won't build on OSF4.0's cc Date: Mon, 11 Jun 2001 01:06:00 -0000 Message-id: <200106110808.LAA17400@is.elta.co.il> References: X-SW-Source: 2001-06/msg00206.html > From: Alexandre Oliva > Date: 10 Jun 2001 18:25:42 -0300 > > On Jun 10, 2001, Eli Zaretskii wrote: > > > On 9 Jun 2001, Alexandre Oliva wrote: > > >> Fixed as follows. Not tested on all relevant architectures. I'd do > >> that after next Monday's GCC snapshot, since I've been building GDB > >> along with GDB lately. Ok to install? > > [...] > >> - memset ((PTR) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info)); > >> + memset ((void *) objfile->sym_stab_info, 0, > >> + sizeof (struct dbx_symfile_info)); > > > Do we _really_ have compilers which require to cast the first argument of > > memset to (void *)? > > Dunno. I was just dumbly replacing PTR with void*, as requested. Does anyone know? IMHO, excess casting is evil, as it can mask programmatic errors. However, if GDB standards don't frown on this, it's fine by me.