1
1

Enumerated mixed with another type (int) is tolerated but

easily fixable.

This commit was SVN r25241.
Этот коммит содержится в:
George Bosilca 2011-10-09 03:54:52 +00:00
родитель c6691b4122
Коммит 649af6c925
5 изменённых файлов: 8 добавлений и 6 удалений

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

@ -81,6 +81,7 @@ BEGIN_C_DECLS
enum ompio_fs_type enum ompio_fs_type
{ {
NONE = 0,
UFS = 1, UFS = 1,
PVFS2 = 2, PVFS2 = 2,
LUSTRE = 3 LUSTRE = 3

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

@ -101,7 +101,7 @@ mca_io_ompio_file_open (ompi_communicator_t *comm,
remote_arch = opal_local_arch; remote_arch = opal_local_arch;
data->ompio_fh.f_convertor = opal_convertor_create (remote_arch, 0); data->ompio_fh.f_convertor = opal_convertor_create (remote_arch, 0);
data->ompio_fh.f_fstype = 0; data->ompio_fh.f_fstype = NONE;
if (OMPI_SUCCESS != (ret = mca_fs_base_file_select (&data->ompio_fh, if (OMPI_SUCCESS != (ret = mca_fs_base_file_select (&data->ompio_fh,
NULL))) { NULL))) {

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

@ -462,7 +462,7 @@ static int module_get_core_info(int socket, int *num_cores)
static int module_get_physical_processor_id(int logical_processor_id, static int module_get_physical_processor_id(int logical_processor_id,
int *physical_processor_id) int *physical_processor_id)
{ {
int obj_type = HWLOC_OBJ_CORE; hwloc_obj_type_t obj_type = HWLOC_OBJ_CORE;
hwloc_obj_t obj; hwloc_obj_t obj;
hwloc_bitmap_t good; hwloc_bitmap_t good;
hwloc_topology_t *t; hwloc_topology_t *t;

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

@ -310,13 +310,14 @@ int opal_sos_reporter(const char *file, int line, const char *func,
void void
opal_sos_report_error(opal_sos_error_t *error) opal_sos_report_error(opal_sos_error_t *error)
{ {
int severity, errnum, ret; opal_sos_severity_t severity;
char *pretty_error; char *pretty_error;
int errnum, ret;
if (NULL == error) if (NULL == error)
return; return;
severity = OPAL_SOS_GET_SEVERITY(error->errnum); severity = (opal_sos_severity_t)OPAL_SOS_GET_SEVERITY(error->errnum);
/* An OPAL SOS encoded error number holds no meaning outside /* An OPAL SOS encoded error number holds no meaning outside
* the context of Open MPI. We convert it back to the native * the context of Open MPI. We convert it back to the native

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

@ -194,7 +194,7 @@ static void *stdin_main(opal_object_t *obj)
asprintf(&data, "<stdin>\n<notifier severity_int=\"%d\" severity_str=\"%s\" errcode=\"%d\">\n<message>%s</message>\n</notifier>\n</stdin>\n", asprintf(&data, "<stdin>\n<notifier severity_int=\"%d\" severity_str=\"%s\" errcode=\"%d\">\n<message>%s</message>\n</notifier>\n</stdin>\n",
arg->sat_severity, arg->sat_severity,
orte_notifier_base_sev2str(arg->sat_severity), orte_notifier_base_sev2str((orte_notifier_base_severity_t)arg->sat_severity),
arg->sat_errcode, arg->sat_errcode,
arg->sat_msg); arg->sat_msg);
if (NULL != data) { if (NULL != data) {
@ -289,7 +289,7 @@ static void do_exec(void)
while (NULL != (p = strstr(cmd, "$S"))) { while (NULL != (p = strstr(cmd, "$S"))) {
*p = '\0'; *p = '\0';
asprintf(&temp, "%s%s%s", cmd, asprintf(&temp, "%s%s%s", cmd,
orte_notifier_base_sev2str(sel[0]), p + 2); orte_notifier_base_sev2str((orte_notifier_base_severity_t)sel[0]), p + 2);
free(cmd); free(cmd);
cmd = temp; cmd = temp;
} }