Fix a proble building the libiberty library with gcc-12.

PR 28779
	* regex.c: Suppress -Wuse-after-free.
This commit is contained in:
Martin Sebor
2022-01-24 17:56:23 +00:00
committed by Nick Clifton
parent 965c919f98
commit 2f279a64a2
2 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,10 @@
#pragma alloca
#endif
#if __GNUC__ >= 12
# pragma GCC diagnostic ignored "-Wuse-after-free"
#endif
#undef _GNU_SOURCE
#define _GNU_SOURCE