From: Tobias Burnus Date: Thu, 3 Sep 2009 07:36:36 +0000 (+0200) Subject: re PR fortran/41219 (libgfortran build warnings) X-Git-Tag: releases/gcc-4.5.0~3705 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5111a4417b8e62a1d6b8d83ca729338ea1c7c2;p=thirdparty%2Fgcc.git re PR fortran/41219 (libgfortran build warnings) 2009-09-03 Tobias Burnus PR fortran/41219 * intrinsics/iso_c_binding.c (c_f_pointer_u0): Move variable declaration out of the loop. From-SVN: r151371 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index f1ac312833b6..065a4ba3c73f 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2009-09-03 Tobias Burnus + + PR fortran/41219 + * intrinsics/iso_c_binding.c (c_f_pointer_u0): Move variable + declaration out of the loop. + 2009-08-30 Thomas Koenig * m4/pack.m4 (pack_'rtype_code`): Use count_0 for counting true diff --git a/libgfortran/intrinsics/iso_c_binding.c b/libgfortran/intrinsics/iso_c_binding.c index 569b122f2360..ea1bab39501b 100644 --- a/libgfortran/intrinsics/iso_c_binding.c +++ b/libgfortran/intrinsics/iso_c_binding.c @@ -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. */