diff options
author | Jason Merrill <jason@redhat.com> | 2024-09-21 13:30:31 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-09-23 10:53:01 -0400 |
commit | 358db2e3ed4acf44282d1d9ebbc4a1a3b6e38d21 (patch) | |
tree | cd008911f03f740db6aed0d64fe5a18129c9eb1b | |
parent | 2620e3727d9559ec03f9f967ecb68ed2e076a342 (diff) | |
download | gcc-358db2e3ed4acf44282d1d9ebbc4a1a3b6e38d21.zip gcc-358db2e3ed4acf44282d1d9ebbc4a1a3b6e38d21.tar.gz gcc-358db2e3ed4acf44282d1d9ebbc4a1a3b6e38d21.tar.bz2 |
libstdc++: guard c++config pragmas
c++config needs to be compilable as C, in which mode we complain about the
-Wc++ pragmas.
libstdc++-v3/ChangeLog:
* include/bits/c++config: Don't try to disable -Wc++??-extensions
when compiling as C.
-rw-r--r-- | libstdc++-v3/include/bits/c++config | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config index 66d03cf..16c67b8 100644 --- a/libstdc++-v3/include/bits/c++config +++ b/libstdc++-v3/include/bits/c++config @@ -34,8 +34,10 @@ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wvariadic-macros" +#if __cplusplus #pragma GCC diagnostic ignored "-Wc++11-extensions" #pragma GCC diagnostic ignored "-Wc++23-extensions" // bf16 +#endif // The major release number for the GCC release the C++ library belongs to. #define _GLIBCXX_RELEASE |