mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-07 08:03:16 +08:00
Only disable -Wnoexcept-type on gcc >= 7
This commit is contained in:
parent
616e3d8fa3
commit
d15b217f1a
@ -31,7 +31,9 @@
|
|||||||
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||||
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
# pragma GCC diagnostic ignored "-Wattributes"
|
# pragma GCC diagnostic ignored "-Wattributes"
|
||||||
|
# if __GNUC__ >= 7
|
||||||
# pragma GCC diagnostic ignored "-Wnoexcept-type"
|
# pragma GCC diagnostic ignored "-Wnoexcept-type"
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "attr.h"
|
#include "attr.h"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user