mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-18 08:55:57 +00:00
fix: make PYBIND11_WARNING_POP actually pop clang diagnostics
This commit is contained in:
parent
e7c9b90739
commit
d84c495037
@ -46,7 +46,7 @@
|
||||
# define PYBIND11_COMPILER_CLANG
|
||||
# define PYBIND11_PRAGMA(...) _Pragma(#__VA_ARGS__)
|
||||
# define PYBIND11_WARNING_PUSH PYBIND11_PRAGMA(clang diagnostic push)
|
||||
# define PYBIND11_WARNING_POP PYBIND11_PRAGMA(clang diagnostic push)
|
||||
# define PYBIND11_WARNING_POP PYBIND11_PRAGMA(clang diagnostic pop)
|
||||
#elif defined(__GNUC__)
|
||||
# define PYBIND11_COMPILER_GCC
|
||||
# define PYBIND11_PRAGMA(...) _Pragma(#__VA_ARGS__)
|
||||
|
Loading…
Reference in New Issue
Block a user