From f5a07f651cea21399141410d0d3acc4883f09b4c Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 9 Dec 2014 06:04:37 -0800 Subject: [PATCH] libfabric: Open MPI addition to stem a flood of warnings Add a pragma to not warn about zero-length arrays. This needs to be addressed upstream, but for now, do it here. --- opal/mca/common/libfabric/libfabric/include/rdma/fi_eq.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opal/mca/common/libfabric/libfabric/include/rdma/fi_eq.h b/opal/mca/common/libfabric/libfabric/include/rdma/fi_eq.h index 4d59713a3c..5ea12fcd30 100644 --- a/opal/mca/common/libfabric/libfabric/include/rdma/fi_eq.h +++ b/opal/mca/common/libfabric/libfabric/include/rdma/fi_eq.h @@ -139,7 +139,14 @@ struct fi_eq_cm_entry { /* user must call fi_freeinfo to release info */ struct fi_info *info; /* connection data placed here, up to space provided */ + /* Open MPI added these pragmas to stem a flood of warnings. This + needs to be addressed upstream */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" uint8_t data[0]; + /* Open MPI added these pragmas to stem a flood of warnings. This + needs to be addressed upstream */ +#pragma GCC diagnostic pop }; struct fi_ops_eq {