15
15
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
16
16
* Copyright (c) 2015-2017 Research Organization for Information Science
17
17
* and Technology (RIST). All rights reserved.
18
+ * Copyright (c) 2019 IBM Corporation. All rights reserved.
18
19
* $COPYRIGHT$
19
20
*
20
21
* Additional copyrights may follow
@@ -34,8 +35,9 @@ int32_t ompi_datatype_create_indexed( int count, const int* pBlockLength, const
34
35
const ompi_datatype_t * oldType , ompi_datatype_t * * newType )
35
36
{
36
37
ompi_datatype_t * pdt ;
37
- int i , dLength , endat , disp ;
38
- ptrdiff_t extent ;
38
+ int i ;
39
+ ptrdiff_t extent , disp , endat ;
40
+ size_t dLength ;
39
41
40
42
if ( 0 == count ) {
41
43
return ompi_datatype_duplicate ( & ompi_mpi_datatype_null .dt , newType );
@@ -70,8 +72,9 @@ int32_t ompi_datatype_create_hindexed( int count, const int* pBlockLength, const
70
72
const ompi_datatype_t * oldType , ompi_datatype_t * * newType )
71
73
{
72
74
ompi_datatype_t * pdt ;
73
- int i , dLength ;
75
+ int i ;
74
76
ptrdiff_t extent , disp , endat ;
77
+ size_t dLength ;
75
78
76
79
if ( 0 == count ) {
77
80
* newType = ompi_datatype_create ( 0 );
@@ -108,8 +111,9 @@ int32_t ompi_datatype_create_indexed_block( int count, int bLength, const int* p
108
111
const ompi_datatype_t * oldType , ompi_datatype_t * * newType )
109
112
{
110
113
ompi_datatype_t * pdt ;
111
- int i , dLength , endat , disp ;
112
- ptrdiff_t extent ;
114
+ int i ;
115
+ ptrdiff_t extent , disp , endat ;
116
+ size_t dLength ;
113
117
114
118
ompi_datatype_type_extent ( oldType , & extent );
115
119
if ( (count == 0 ) || (bLength == 0 ) ) {
@@ -147,8 +151,9 @@ int32_t ompi_datatype_create_hindexed_block( int count, int bLength, const ptrdi
147
151
const ompi_datatype_t * oldType , ompi_datatype_t * * newType )
148
152
{
149
153
ompi_datatype_t * pdt ;
150
- int i , dLength ;
154
+ int i ;
151
155
ptrdiff_t extent , disp , endat ;
156
+ size_t dLength ;
152
157
153
158
ompi_datatype_type_extent ( oldType , & extent );
154
159
if ( (count == 0 ) || (bLength == 0 ) ) {
0 commit comments