HomeFreeBSD

Silence GCC warnings when using libc++ headers.

Description

Silence GCC warnings when using libc++ headers.

GCC 12 raises warnings about literal operator suffixes not preceded by
'_' in libc++ headers such as <string_view> as it doesn't recognize
libc++ headers being an implementation of the standard.

GCC 12 also warns about clang-specific pragmas in <locale>.

Disabling these warnings globally for all C++ code is not ideal, but
is a better option than patching libc++ headers to ignore these
warnings.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D37530

(cherry picked from commit 442295c1fe84b4dc3e4834acdbf4ede75affe3c4)

Details

Provenance
jhbAuthored on Nov 30 2022, 10:50 PM
Reviewer
emaste
Differential Revision
D37530: Silence GCC warnings when using libc++ headers.
Parents
rG773bb4c45cac: Use __freebsd_kprintf__ with GCC 12+ similar to clang.
Branches
Unknown
Tags
Unknown