Fix compiler warnings.

PiperOrigin-RevId: 447744251
pull/13171/head
Joshua Haberman 3 years ago committed by Copybara-Service
parent 32f45b5f33
commit c3cfd09b01
  1. 3
      python/message.c

@ -428,8 +428,8 @@ static bool PyUpb_CMessage_InitRepeatedAttribute(PyObject* _self,
}
bool ok = false;
PyObject* repeated = PyUpb_CMessage_GetFieldValue(_self, field);
if (!repeated) goto err;
PyObject* tmp = NULL;
if (!repeated) goto err;
if (upb_FieldDef_IsSubMessage(field)) {
if (!PyUpb_CMessage_InitRepeatedMessageAttribute(_self, repeated, value,
field)) {
@ -1239,6 +1239,7 @@ static PyObject* PyUpb_CMessage_Clear(PyUpb_CMessage* self, PyObject* args) {
if (subobj_map) {
upb_Message* msg = PyUpb_CMessage_GetMsg(self);
(void)msg; // Suppress unused warning when asserts are disabled.
intptr_t iter = PYUPB_WEAKMAP_BEGIN;
const void* key;
PyObject* obj;

Loading…
Cancel
Save