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.
This commit is contained in:
parent
2620e3727d
commit
358db2e3ed
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue