Skip to content

Commit 1947280

Browse files
committed
topo/treematch: squash some compiler warnings
Only define MIN/MAX if they are not already defined. Signed-off-by: Jeff Squyres <[email protected]>
1 parent b51c4e2 commit 1947280

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ompi/mca/topo/treematch/treematch/tm_kpartitioning.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ static int verbose_level = ERROR;
1515
#define MAX_TRIALS 10
1616
#define USE_KL_STRATEGY 1
1717

18-
18+
#if !defined(MIN)
1919
#define MIN(a,b) ((a)<(b)?(a):(b))
20+
#endif
2021

2122

2223
int fill_tab(int **,int *,int,int,int,int);

ompi/mca/topo/treematch/treematch/tm_tree.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
#include "tm_thread_pool.h"
1313

1414

15+
#if !defined(MIN)
1516
#define MIN(a,b) ((a)<(b)?(a):(b))
17+
#endif
18+
#if !defined(MAX)
1619
#define MAX(a,b) ((a)>(b)?(a):(b))
20+
#endif
1721

1822
#ifndef __CHARMC__
1923
#define __CHARMC__ 0

0 commit comments

Comments
 (0)