Skip to content

Commit 395e2c9

Browse files
authored
Merge pull request #7364 from awlauria/fix_compile
Protect use of _Static_assert().
2 parents 827e9f6 + 824dbcb commit 395e2c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opal/mca/btl/tcp/btl_tcp_addr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ struct mca_btl_tcp_modex_addr_t {
6262
};
6363
typedef struct mca_btl_tcp_modex_addr_t mca_btl_tcp_modex_addr_t;
6464

65+
#if (__STDC_VERSION__ >= 201112L)
6566
_Static_assert(sizeof(struct mca_btl_tcp_modex_addr_t) == 32, "mca_btl_tcp_modex_addr_t");
67+
#endif
6668

6769
/**
6870
* Remote peer address structure

0 commit comments

Comments
 (0)