Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix "label at end of compound statement" warnings
  • Loading branch information
duaneg committed Apr 17, 2025
commit 6f95e9cfced1dc739be655166a88f68932437f3b
10 changes: 5 additions & 5 deletions Modules/_dbmmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ dbm_length(PyObject *self)
dp->di_size = size;
}
result = dp->di_size;
done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down Expand Up @@ -181,7 +181,7 @@ dbm_bool(PyObject *self)

/* Non-empty. Don't cache the length since we don't know. */
result = 1;
done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down Expand Up @@ -213,7 +213,7 @@ dbm_subscript(PyObject *self, PyObject *key)
goto done;
}
result = PyBytes_FromStringAndSize(drec.dptr, drec.dsize);
done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down Expand Up @@ -276,7 +276,7 @@ dbm_ass_sub(PyObject *self, PyObject *v, PyObject *w)
}

result = 0;
done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down Expand Up @@ -375,7 +375,7 @@ dbm_contains(PyObject *self, PyObject *arg)
}
val = dbm_fetch(dp->di_dbm, key);
result = val.dptr != NULL;
done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down
10 changes: 5 additions & 5 deletions Modules/_gdbmmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ gdbm_length(PyObject *op)
#endif
}
result = dp->di_size;
done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down Expand Up @@ -229,7 +229,7 @@ gdbm_bool(PyObject *op)
free(key.dptr);
result = 1;

done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down Expand Up @@ -280,7 +280,7 @@ gdbm_subscript(PyObject *op, PyObject *key)
}
v = PyBytes_FromStringAndSize(drec.dptr, drec.dsize);
free(drec.dptr);
done:
done:;
Py_END_CRITICAL_SECTION();
return v;
}
Expand Down Expand Up @@ -357,7 +357,7 @@ gdbm_ass_sub(PyObject *op, PyObject *v, PyObject *w)
}
result = 0;

done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down Expand Up @@ -494,7 +494,7 @@ gdbm_contains(PyObject *self, PyObject *arg)
}
result = gdbm_exists(dp->di_dbm, key);

done:
done:;
Py_END_CRITICAL_SECTION();
return result;
}
Expand Down
Loading