Skip to content
Snippets Groups Projects
Commit a59e99b4 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 46bde106
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -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