diff options
author | Tom Honermann <tom@honermann.net> | 2022-07-24 01:11:43 -0400 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-08-01 10:02:00 -0300 |
commit | c3fda489cfdb2260f9fec706e6fd7259858c4467 (patch) | |
tree | 65ccf7c8d7c69e3b2c4dd0909b518b71cc0500be /sysdeps/unix/sysv/linux/sparc | |
parent | c804cd1c00adde061ca51711f63068c103e94eef (diff) | |
download | glibc-c3fda489cfdb2260f9fec706e6fd7259858c4467.tar glibc-c3fda489cfdb2260f9fec706e6fd7259858c4467.tar.gz glibc-c3fda489cfdb2260f9fec706e6fd7259858c4467.tar.bz2 glibc-c3fda489cfdb2260f9fec706e6fd7259858c4467.zip |
stdlib: Suppress gcc diagnostic that char8_t is a keyword in C++20 in uchar.h.
gcc 13 issues the following diagnostic for the uchar.h header when the
-Wc++20-compat option is enabled in C++ modes that do not enable char8_t
as a builtin type (C++17 and earlier by default; subject to _GNU_SOURCE
and the gcc -f[no-]char8_t option).
warning: identifier ‘char8_t’ is a keyword in C++20 [-Wc++20-compat]
This change modifies the uchar.h header to suppress the diagnostic through
the use of '#pragma GCC diagnostic' directives for gcc 10 and later (the
-Wc++20-compat option was added in gcc version 10). Unfortunately, a bug
in gcc currently prevents those directives from having the intended effect
as reported at https://gcc.gnu.org/PR106423. A patch for that issue has
been submitted and is available in the email thread archive linked below.
https://gcc.gnu.org/pipermail/gcc-patches/2022-July/598736.html
(cherry picked from commit 825f84f133bd840347dc49229b6d831f07d04775)
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc')
0 files changed, 0 insertions, 0 deletions