@@ -154,7 +154,7 @@ Int BI_ContxtNum(BLACSCONTEXT *ctxt);
154
154
(npcol0) = (ctxt)->rscp.Np;\
155
155
(myrow0) = (ctxt)->cscp.Iam;\
156
156
(mycol0) = (ctxt)->rscp.Iam;\
157
- }
157
+ } (void)0
158
158
159
159
/*
160
160
* These routines return coordinates based on nodes number, or node number
@@ -166,9 +166,9 @@ Int BI_ContxtNum(BLACSCONTEXT *ctxt);
166
166
{\
167
167
(prow) = (node) / (ctxt)->rscp.Np;\
168
168
(pcol) = (node) % (ctxt)->rscp.Np;\
169
- }
169
+ } (void)0
170
170
#define Mvpcoord (ctxt , node , prow , pcol ) \
171
- Mpcoord((ctxt), (node), (prow), (pcol));
171
+ Mpcoord((ctxt), (node), (prow), (pcol))
172
172
173
173
#define Mkpnum (ctxt , prow , pcol ) ( (prow)*(ctxt)->rscp.Np+(pcol) )
174
174
#define Mvkpnum (ctxt , prow , pcol ) ( (prow)*(ctxt)->rscp.Np+(pcol) )
@@ -178,7 +178,7 @@ Int BI_ContxtNum(BLACSCONTEXT *ctxt);
178
178
*/
179
179
#define Mscopeid (ctxt ) (ctxt)->scp->ScpId; \
180
180
if (++(ctxt)->scp->ScpId == (ctxt)->scp->MaxId) \
181
- (ctxt)->scp->ScpId = (ctxt)->scp->MinId;
181
+ (ctxt)->scp->ScpId = (ctxt)->scp->MinId
182
182
183
183
/*
184
184
* Get context, and check for validity if debug level is high
@@ -195,13 +195,13 @@ Int BI_ContxtNum(BLACSCONTEXT *ctxt);
195
195
BI_BlacsErr(-1, __LINE__, __FILE__, "Invalid context, handle=%d",\
196
196
(Context));\
197
197
(ctxtptr) = BI_MyContxts[(Context)];\
198
- }
198
+ } (void)0
199
199
#else
200
200
#define MGetConTxt (Context , ctxtptr )\
201
201
{\
202
202
extern BLACSCONTEXT **BI_MyContxts;\
203
203
(ctxtptr) = BI_MyContxts[(Context)];\
204
- }
204
+ } (void)0
205
205
#endif
206
206
/*
207
207
* This macro handles MPI errors
@@ -223,7 +223,7 @@ Int BI_ContxtNum(BLACSCONTEXT *ctxt);
223
223
{ \
224
224
extern Int BI_Iam; \
225
225
fprintf(stderr, "%d: line %d of file %s\n", BI_Iam, __LINE__, __FILE__); \
226
- }
226
+ } (void)0
227
227
228
228
/*
229
229
* These macros allow for the funky function declarations and character handling
@@ -282,7 +282,7 @@ Int BI_ContxtNum(BLACSCONTEXT *ctxt);
282
282
else\
283
283
(length) = ( (m) * ( (n) - (m) ) + ( (m)*(m) ) - ( (m)*(m) )/2 +\
284
284
(m)/2 - (m) * (length) ) * (bytes);\
285
- }
285
+ } (void)0
286
286
287
287
/*
288
288
* These macros call the correct packing/unpacking routines
0 commit comments