mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
cae0e00947
GCC-6 adds a -Wplacement-new warning that warns for placement-new into a space that is too small, which is sometimes being triggered here (e.g. example5 always generates the warning under g++-6). It's a false warning, however: the line immediately before just checked the size, and so this line is never going to actually be reached in the cases where the GCC warning is being triggered. This localizes the warning disabling just to this one spot as there are other placement-new uses in pybind11 where this warning could warn about legitimate future problems. |
||
---|---|---|
.. | ||
pybind11 |