Skip to content

Commit c16b5b9

Browse files
authored
PYTHON-2331 Fix set_memory_error complier warning (#469)
bson/buffer.c:36:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 36 | static void set_memory_error() { | ^~~~~~~~~~~~~~~~
1 parent 7a539f2 commit c16b5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct buffer {
3333

3434
/* Set Python's error indicator to MemoryError.
3535
* Called after allocation failures. */
36-
static void set_memory_error() {
36+
static void set_memory_error(void) {
3737
PyErr_NoMemory();
3838
}
3939

0 commit comments

Comments
 (0)