1
1

Merge pull request #5203 from jsquyres/pr/warnings-stomps

Minor compiler warning stomps
Этот коммит содержится в:
Jeff Squyres 2018-05-30 15:57:05 -04:00 коммит произвёл GitHub
родитель 2e8ab41ba5 fb0473acb5
Коммит 01e26459d2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 8 добавлений и 4 удалений

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

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2009-2018 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -12,6 +12,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "opal/runtime/opal.h"
#include "opal/mca/dl/base/base.h"

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

@ -13,6 +13,7 @@
* Copyright (c) 2015-2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2017 IBM Corporation. All rights reserved.
* Copyright (c) 2018 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -1162,7 +1163,7 @@ static int shuffle_init ( int index, int cycles, int aggregator, int rank, mca_i
int block_index = -1;
int blocklength_size = INIT_LEN;
ptrdiff_t send_mem_address = NULL;
ptrdiff_t send_mem_address = (ptrdiff_t) NULL;
ompi_datatype_t *newType = MPI_DATATYPE_NULL;
blocklength_proc = (int *) calloc (blocklength_size, sizeof (int));
displs_proc = (ptrdiff_t *) calloc (blocklength_size, sizeof (ptrdiff_t));

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

@ -12,6 +12,7 @@
* All rights reserved.
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
* Copyright (c) 2018 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -46,7 +47,7 @@ int opal_datatype_contain_basic_datatypes( const opal_datatype_t* pData, char* p
if( NULL == pData->ptypes ) {
index += snprintf( ptr + index, length - index, "%s:* ", opal_datatype_basicDatatypes[i]->name );
} else {
index += snprintf( ptr + index, length - index, "%s:%lu ", opal_datatype_basicDatatypes[i]->name,
index += snprintf( ptr + index, length - index, "%s:%" PRIsize_t " ", opal_datatype_basicDatatypes[i]->name,
pData->ptypes[i]);
}
}

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

@ -13,6 +13,7 @@
* Copyright (c) 2014-2016 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2016-2018 Intel, Inc. All rights reserved.
* Copyright (c) 2018 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -31,7 +32,7 @@
#include "src/util/name_fns.h"
#include "src/util/printf.h"
#define PMIX_PRINT_NAME_ARGS_MAX_SIZE 50
#define PMIX_PRINT_NAME_ARGS_MAX_SIZE 300
#define PMIX_PRINT_NAME_ARG_NUM_BUFS 16
#define PMIX_SCHEMA_DELIMITER_CHAR '.'