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