[commit] [patch] Fix gcc-3.4.6: warning: parameter has incomplete type

Jan Kratochvil jan.kratochvil@redhat.com
Tue Jul 3 20:10:00 GMT 2012


On Tue, 03 Jul 2012 22:05:33 +0200, Doug Evans wrote:
> > gdb/
> > 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
> >
> >         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
> >         * dwarf2expr.h: Include gdbtypes.h.
> >         (enum call_site_parameter_kind, union call_site_parameter_u):
> > Remove
> >         these forward declarations.
> >         (cu_offset, sect_offset): Move these ...
> >         * gdbtypes.h: Remove include dwarf2expr.h.
> >         (cu_offset, sect_offset): ... here.
> 
> For now  I think it's fine.
> Removing dwarf2expr.h from gdbtypes.h is nice.

Checked in:
	http://sourceware.org/ml/gdb-cvs/2012-07/msg00026.html


Thanks,
Jan



More information about the Gdb-patches mailing list