1
1

libfabric: use correct C99 notation for var-length array

Nathan pointed out the correct C99 way to notate a variable-length
array in a struct.  This change has now been accepted upstream in
libfabric.
Этот коммит содержится в:
Jeff Squyres 2014-12-09 13:32:32 -08:00
родитель d0da29351f
Коммит 2f9c69f016

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

@ -139,13 +139,7 @@ struct fi_eq_cm_entry {
/* user must call fi_freeinfo to release info */ /* user must call fi_freeinfo to release info */
struct fi_info *info; struct fi_info *info;
/* connection data placed here, up to space provided */ /* connection data placed here, up to space provided */
/* Open MPI added these pragmas to stem a flood of warnings. This uint8_t data[];
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 #pragma GCC diagnostic pop
}; };