Browse Source

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

PR 28779
	* regex.c: Suppress -Wuse-after-free.
gdb-12-branch
Martin Sebor 4 years ago
committed by Nick Clifton
parent
commit
2f279a64a2
  1. 4
      libiberty/ChangeLog
  2. 4
      libiberty/regex.c

4
libiberty/ChangeLog

@ -1,3 +1,7 @@
2022-01-15 Martin Sebor <msebor@redhat.com>
* regex.c: Suppress -Wuse-after-free.
2022-01-22 Nick Clifton <nickc@redhat.com>
* 2.38 release branch created.

4
libiberty/regex.c

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

Loading…
Cancel
Save