mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-20 01:42:37 +00:00
Fix ifdef for pragma GCC diagnostic.
This commit is contained in:
parent
5aaf96a382
commit
5d45055a58
@ -18,7 +18,8 @@
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# if defined(__GNUC__) && !defined(PYBIND11_CPP20)
|
# if !defined(PYBIND11_CPP20) && defined(__GNUC__) && !defined(__clang__) \
|
||||||
|
&& !defined(__INTEL_COMPILER)
|
||||||
# pragma GCC diagnostic ignored "-Wsubobject-linkage"
|
# pragma GCC diagnostic ignored "-Wsubobject-linkage"
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user