TYPE shouldn't be surrounded by parens because it causes issues for some versions of gcc when the construct a = ((int)) sizeof(b) comes up...
This commit was SVN r20140.
Этот коммит содержится в:
родитель
b65796b906
Коммит
dbccb250f0
@ -56,9 +56,9 @@ typedef struct __dt_args {
|
||||
*/
|
||||
#if OMPI_ALIGN_WORD_SIZE_INTEGERS
|
||||
#define OMPI_DDT_ALIGN_INT(VALUE, TYPE) \
|
||||
(VALUE) = OPAL_ALIGN((VALUE), sizeof(MPI_Aint), (TYPE))
|
||||
(VALUE) = OPAL_ALIGN((VALUE), sizeof(MPI_Aint), TYPE)
|
||||
#define OMPI_DDT_ALIGN_PTR(PTR, TYPE) \
|
||||
(PTR) = OPAL_ALIGN_PTR((PTR), sizeof(MPI_Aint), (TYPE))
|
||||
(PTR) = OPAL_ALIGN_PTR((PTR), sizeof(MPI_Aint), TYPE)
|
||||
#else
|
||||
#define OMPI_DDT_ALIGN_INT(VALUE, TYPE)
|
||||
#define OMPI_DDT_ALIGN_PTR(PTR, TYPE)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user