1
1

Fix some compiler warnings (specifically, from icc v8.0)

This commit was SVN r4093.
Этот коммит содержится в:
Jeff Squyres 2005-01-21 13:54:38 +00:00
родитель 46d7f9a7ed
Коммит 76f2125c98
3 изменённых файлов: 20 добавлений и 15 удалений

Просмотреть файл

@ -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)