Commit ee5111a4 by Tobias Burnus Committed by Tobias Burnus

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
parent e12c4094
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> 2009-08-30 Thomas Koenig <tkoenig@gcc.gnu.org>
* m4/pack.m4 (pack_'rtype_code`): Use count_0 for counting true * m4/pack.m4 (pack_'rtype_code`): Use count_0 for counting true
......
...@@ -95,7 +95,7 @@ ISO_C_BINDING_PREFIX (c_f_pointer_u0) (void *c_ptr_in, ...@@ -95,7 +95,7 @@ ISO_C_BINDING_PREFIX (c_f_pointer_u0) (void *c_ptr_in,
if (shape != NULL) if (shape != NULL)
{ {
index_type source_stride; index_type source_stride;
index_type size; index_type size, str;
char *p; char *p;
f_ptr_out->offset = 0; f_ptr_out->offset = 0;
...@@ -109,7 +109,7 @@ ISO_C_BINDING_PREFIX (c_f_pointer_u0) (void *c_ptr_in, ...@@ -109,7 +109,7 @@ ISO_C_BINDING_PREFIX (c_f_pointer_u0) (void *c_ptr_in,
shapeSize = GFC_DESCRIPTOR_EXTENT(shape,0); shapeSize = GFC_DESCRIPTOR_EXTENT(shape,0);
for (i = 0; i < shapeSize; i++) 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 /* Have to allow for the SHAPE array to be any valid kind for
an INTEGER type. */ an INTEGER type. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment