1
1

Merge pull request #3185 from jsquyres/pr/master/compiler-warning-squashes

Compiler warning squashes
Этот коммит содержится в:
Jeff Squyres 2017-03-16 10:12:08 -04:00 коммит произвёл GitHub
родитель 65d0372e84 760db0d5ce
Коммит 5219054d29
4 изменённых файлов: 17 добавлений и 7 удалений

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

@ -5,6 +5,7 @@
* reserved.
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2017 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -153,7 +154,6 @@ int ompi_osc_pt2pt_frag_flush_pending_all (ompi_osc_pt2pt_module_t *module)
int ompi_osc_pt2pt_frag_flush_target (ompi_osc_pt2pt_module_t *module, int target)
{
ompi_osc_pt2pt_peer_t *peer = ompi_osc_pt2pt_peer_lookup (module, target);
ompi_osc_pt2pt_frag_t *frag;
int ret = OMPI_SUCCESS;
OPAL_OUTPUT_VERBOSE((50, ompi_osc_base_framework.framework_output,

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

@ -15,8 +15,9 @@ static int verbose_level = ERROR;
#define MAX_TRIALS 10
#define USE_KL_STRATEGY 1
#if !defined(MIN)
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
int fill_tab(int **,int *,int,int,int,int);

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

@ -12,8 +12,12 @@
#include "tm_thread_pool.h"
#if !defined(MIN)
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
#if !defined(MAX)
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
#ifndef __CHARMC__
#define __CHARMC__ 0

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

@ -10,7 +10,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2009-2016 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
* Copyright (c) 2013-2017 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2016 Research Organization for Information Science
@ -59,6 +59,11 @@ static int patcher_query (int *);
static int mca_memory_patcher_priority;
/* NTH: we can't currently allow madvise to be intercepted due to a
* deadlock when running with glibc. In the future, we may re-enable
* this hook if the deadlock can be resolved. */
#define WANT_INTERCEPT_MADVISE 0
opal_memory_patcher_component_t mca_memory_patcher_component = {
.super = {
.memoryc_version = {
@ -244,6 +249,7 @@ static void *intercept_mremap (void *start, size_t oldlen, void *new_address, si
#endif
#if WANT_INTERCEPT_MADVISE
#if defined (SYS_madvise)
static int (*original_madvise) (void *, size_t, int);
@ -278,6 +284,7 @@ static int intercept_madvise (void *start, size_t length, int advice)
}
#endif
#endif // WANT_INTERCEPT_MADVISE
#if defined SYS_brk
@ -496,16 +503,14 @@ static int patcher_open (void)
}
#endif
/* NTH: we can't currently allow madvise to be intercepted due to a deadlock when running with glibc. in
* the future we may re-enable this hook if the deadlock can be resolved. */
#if 0
#if WANT_INTERCEPT_MADVISE
#if defined (SYS_madvise)
rc = opal_patcher->patch_symbol ("madvise", (uintptr_t)intercept_madvise, (uintptr_t *) &original_madvise);
if (OPAL_SUCCESS != rc) {
return rc;
}
#endif
#endif
#endif // WANT_INTERCEPT_MADVISE
#if defined(SYS_shmdt) && defined(__linux__)
rc = opal_patcher->patch_symbol ("shmdt", (uintptr_t) intercept_shmdt, (uintptr_t *) &original_shmdt);