Fix some compiler warnings (specifically, from icc v8.0)
This commit was SVN r4093.
Этот коммит содержится в:
родитель
46d7f9a7ed
Коммит
76f2125c98
@ -29,11 +29,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
#if defined(OMPI_BUILDING) && OMPI_BUILDING
|
# if defined(OMPI_BUILDING)
|
||||||
#define OMPI_DECLSPEC __declspec(dllexport)
|
# if OMPI_BUILDING
|
||||||
#else
|
# define OMPI_DECLSPEC __declspec(dllexport)
|
||||||
#define OMPI_DECLSPEC __declspec(dllimport)
|
# else
|
||||||
#endif
|
# define OMPI_DECLSPEC __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef OMPI_DECLSPEC
|
#ifndef OMPI_DECLSPEC
|
||||||
@ -168,9 +170,11 @@ typedef long long bool;
|
|||||||
/*
|
/*
|
||||||
* Do we want to override debugging controls?
|
* Do we want to override debugging controls?
|
||||||
*/
|
*/
|
||||||
#if defined(OMPI_ENABLE_DEBUG_OVERRIDE) && OMPI_ENABLE_DEBUG_OVERRIDE
|
#if defined(OMPI_ENABLE_DEBUG_OVERRIDE)
|
||||||
#undef OMPI_ENABLE_DEBUG
|
# if OMPI_ENABLE_DEBUG_OVERRIDE
|
||||||
#define OMPI_ENABLE_DEBUG 1
|
# undef OMPI_ENABLE_DEBUG
|
||||||
|
# define OMPI_ENABLE_DEBUG 1
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,10 +90,11 @@ static void ompi_attrkey_item_destruct(ompi_attrkey_item_t *item);
|
|||||||
* ompi_attribute_entry_t classes
|
* ompi_attribute_entry_t classes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
OBJ_CLASS_INSTANCE(ompi_attrkey_item_t,
|
struct ompi_attrkey_item_t_class;
|
||||||
ompi_object_t,
|
static OBJ_CLASS_INSTANCE(ompi_attrkey_item_t,
|
||||||
ompi_attrkey_item_construct,
|
ompi_object_t,
|
||||||
ompi_attrkey_item_destruct);
|
ompi_attrkey_item_construct,
|
||||||
|
ompi_attrkey_item_destruct);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -194,7 +194,7 @@
|
|||||||
do { \
|
do { \
|
||||||
assert(NULL != object); \
|
assert(NULL != object); \
|
||||||
assert(NULL != ((ompi_object_t *) (object))->obj_class); \
|
assert(NULL != ((ompi_object_t *) (object))->obj_class); \
|
||||||
if (object) { \
|
if (NULL != object) { \
|
||||||
ompi_obj_update((ompi_object_t *) (object), 1); \
|
ompi_obj_update((ompi_object_t *) (object), 1); \
|
||||||
} \
|
} \
|
||||||
assert(((ompi_object_t *) (object))->obj_reference_count >= 0); \
|
assert(((ompi_object_t *) (object))->obj_reference_count >= 0); \
|
||||||
@ -238,7 +238,7 @@
|
|||||||
if (0 == (type)->cls_initialized) { \
|
if (0 == (type)->cls_initialized) { \
|
||||||
ompi_class_initialize((type)); \
|
ompi_class_initialize((type)); \
|
||||||
} \
|
} \
|
||||||
if (object) { \
|
if (NULL != object) { \
|
||||||
((ompi_object_t *) (object))->obj_class = (type); \
|
((ompi_object_t *) (object))->obj_class = (type); \
|
||||||
((ompi_object_t *) (object))->obj_reference_count = 1; \
|
((ompi_object_t *) (object))->obj_reference_count = 1; \
|
||||||
ompi_obj_run_constructors((ompi_object_t *) (object)); \
|
ompi_obj_run_constructors((ompi_object_t *) (object)); \
|
||||||
@ -253,7 +253,7 @@
|
|||||||
*/
|
*/
|
||||||
#define OBJ_DESTRUCT(object) \
|
#define OBJ_DESTRUCT(object) \
|
||||||
do { \
|
do { \
|
||||||
if (object) { \
|
if (NULL != object) { \
|
||||||
ompi_obj_run_destructors((ompi_object_t *) (object)); \
|
ompi_obj_run_destructors((ompi_object_t *) (object)); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user