diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index ebc1d1596..9bb27d7ac 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1336,7 +1336,7 @@ template str_attr_accessor object_api::attr_with_type(const char *key) const { annotations()[key] = make_caster::name.text; return {derived(), key}; -}; +} // Placeholder type for the unneeded (and dead code) static variable in the // PYBIND11_OVERRIDE_OVERRIDE macro