Skip to content
Snippets Groups Projects
Commit 81928923 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Add pragma to prevent buggy gcc 11 diagnostic message.

parent 9191406b
No related branches found
No related tags found
1 merge request!11Consolidation with CDI-PIO (1.8.x)
......@@ -1433,6 +1433,14 @@ streamMappingDelete(struct streamMapping **mapping)
*mapping = NULL;
}
#if __GNUC__ == 11 && __GNUC_MINOR__ <= 2
/* gcc 11.1 has a bug in the -fsanitize=undefined functionality
* which creates a bogus warning without the below suppression, bug
* report at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101585 */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wvla-parameter"
#endif
/**
* @param[out] passes_ pointer to pointer to 2-dimensional array of
* records of dimensions $number of passes \cdot number of collectors$,
......@@ -1548,6 +1556,11 @@ planPasses(const struct streamMapping *mapping,
return numPasses;
}
#if __GNUC__ == 11 && __GNUC_MINOR__ <= 2
#pragma GCC diagnostic pop
#endif
static inline size_t
szmin(size_t a, size_t b)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment