Commit 70ffefa5 authored by Josh Haberman's avatar Josh Haberman

Fixed compile errors after rebase.

parent 00700b72
...@@ -313,7 +313,7 @@ static PyObject* New(PyTypeObject* type, ...@@ -313,7 +313,7 @@ static PyObject* New(PyTypeObject* type,
// Add the message to the DescriptorPool. // Add the message to the DescriptorPool.
if (cdescriptor_pool::RegisterMessageClass(newtype->py_descriptor_pool, if (cdescriptor_pool::RegisterMessageClass(newtype->py_descriptor_pool,
descriptor, result) < 0) { descriptor, result.get()) < 0) {
return NULL; return NULL;
} }
...@@ -1946,8 +1946,6 @@ static PyObject* RegisterExtension(PyObject* cls, ...@@ -1946,8 +1946,6 @@ static PyObject* RegisterExtension(PyObject* cls,
if (descriptor == NULL) { if (descriptor == NULL) {
return NULL; return NULL;
} }
const Descriptor* cmessage_descriptor = GetMessageDescriptor(
reinterpret_cast<PyTypeObject*>(cls));
ScopedPyObjectPtr extensions_by_name( ScopedPyObjectPtr extensions_by_name(
PyObject_GetAttr(cls, k_extensions_by_name)); PyObject_GetAttr(cls, k_extensions_by_name));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment