Some more warning fixes

Steven Bosscher stevenb@novell.com
Sun May 15 12:23:00 GMT 2005


On Sunday 15 May 2005 14:19, Steven Bosscher wrote:
> On Sunday 15 May 2005 13:15, Andreas Jaeger wrote:
> > 	* m4/transpose.m4, m4/matmul.m4: Fix pointer cast to avoid
> > 	warning.
> > 	* generated/transpose_c4.c, generated/transpose_c8.c,
> > 	generated/transpose_i4.c, generated/transpose_i8.c,
> > 	generated/matmul_c4.c, generated/matmul_c8.c,
> > 	generated/matmul_i4.c, generated/matmul_i8.c,
> > 	generated/matmul_r4.c, generated/matmul_r8.c: Regenerated.
>
> I'm not too happy about casts, but I don't see another way to fix
> it either.  Maybe we need a new function internal to libgfortran
> (possibly inline) to compute the size without passing the entire
> descriptor (size0 only needs to know the rank and dimentions).
> What do others think?
>
> In the mean time this will do.

And can someone explain why we have

typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, void) array_t;

and also

typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, void) gfc_array_void;

??

Gr.
Steven



More information about the Fortran mailing list