re PR fortran/41219 (libgfortran build warnings)

2009-09-03  Tobias Burnus  <burnus@net-b.de>

       PR fortran/41219
       * intrinsics/iso_c_binding.c (c_f_pointer_u0): Move variable
       declaration out of the loop.

From-SVN: r151371
This commit is contained in:
Tobias Burnus 2009-09-03 09:36:36 +02:00 committed by Tobias Burnus
parent e12c409449
commit ee5111a441
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-09-03 Tobias Burnus <burnus@net-b.de>
PR fortran/41219
* intrinsics/iso_c_binding.c (c_f_pointer_u0): Move variable
declaration out of the loop.
2009-08-30 Thomas Koenig <tkoenig@gcc.gnu.org>
* m4/pack.m4 (pack_'rtype_code`): Use count_0 for counting true

View File

@ -95,7 +95,7 @@ ISO_C_BINDING_PREFIX (c_f_pointer_u0) (void *c_ptr_in,
if (shape != NULL)
{
index_type source_stride;
index_type size;
index_type size, str;
char *p;
f_ptr_out->offset = 0;
@ -109,7 +109,7 @@ ISO_C_BINDING_PREFIX (c_f_pointer_u0) (void *c_ptr_in,
shapeSize = GFC_DESCRIPTOR_EXTENT(shape,0);
for (i = 0; i < shapeSize; i++)
{
index_type str, ub;
index_type ub;
/* Have to allow for the SHAPE array to be any valid kind for
an INTEGER type. */