Skip to content
Snippets Groups Projects
Commit f69b7ee1 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 5ac293a3
No related branches found
No related tags found
No related merge requests found
......@@ -1219,6 +1219,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$,
......@@ -1320,6 +1328,10 @@ planPasses(const struct streamMapping *mapping, const struct cdiPioConf *conf, s
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